Michael Wojtanis Posted January 31, 2014 Share Posted January 31, 2014 (edited) Hi people. I just making little script and i wanted a Relative Camera Position - left, right... GTA Native have calls for peds, objects and cars, but i did not saw any for camera. So there is, left: Vector3 camDir = Game.CurrentCamera.Direction;Vector3 TEST = Vector3.TransformCoordinate(camDir, Matrix.RotationAxis(Vector3.WorldUp, 1.57775F));TEST = TEST + Game.CurrentCamera.Position; Right: Vector3 camDir = Game.CurrentCamera.Direction;Vector3 TEST = Vector3.TransformCoordinate(camDir, Matrix.RotationAxis(Vector3.WorldUp, -1.57775F));TEST = TEST + Game.CurrentCamera.Position; Back: Vector3 camDir = Game.CurrentCamera.Direction;Vector3 TEST = Vector3.TransformCoordinate(camDir, Matrix.RotationAxis(Vector3.WorldUp, 3.15555F));TEST = TEST + Game.CurrentCamera.Position; Front: Vector3 camDir = Game.CurrentCamera.Direction;TEST = camDir+Game.CurrentCamera.Position; If You want bigger amount then You should multiplication the TEST where is Vector3.TransformCoordinate. I think for new modders mayby that will give new ideas Edited January 31, 2014 by Michael Wojtanis AgentWD40 and LordOfTheBongs 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now