1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

getting Camera rotation data

Discussion in 'Programming' started by ncmpinc, May 16, 2004.

  1. ncmpinc

    ncmpinc New Member

    Joined:
    Apr 12, 2004
    Messages:
    13
    Likes Received:
    0
    I've made a redirection trigger which test if the player is pointing on a specific point, but the rotation data of the pawn can't be used for this, because the player itself don't have a pitch rotation. (It's always zero)
    How can I get the camera rotation data?
     
  2. oneirotekt

    oneirotekt New Member

    Joined:
    Aug 24, 2003
    Messages:
    59
    Likes Received:
    0
    Try Pawn.Controller.GetViewRotation(). That will return a Rotator with the player's current view angle.
     
  3. ncmpinc

    ncmpinc New Member

    Joined:
    Apr 12, 2004
    Messages:
    13
    Likes Received:
    0

Share This Page