getting Camera rotation data

  • 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.

ncmpinc

New Member
Apr 12, 2004
13
0
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?
 

oneirotekt

New Member
Aug 24, 2003
59
0
0
ncmpinc said:
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?

Try Pawn.Controller.GetViewRotation(). That will return a Rotator with the player's current view angle.