12p Posted December 19, 2010 Posted December 19, 2010 Suppose we have set the camera matrix. And the player is facing to another point, not the same as the camera. Something like this: Well, how to set the right ped rotation, so he will be pointing at the camera facing point? (setPedAimTarget or setPedLookAt doesn't help me)
Aibo Posted December 19, 2010 Posted December 19, 2010 calculate rotation from 2 getCameraMatrix() XY points, and setPedRotation() with that angle?
12p Posted December 19, 2010 Author Posted December 19, 2010 I will test. Thanks for fast answer EDIT (sorry and excuse me, I have to xpress my real thinking): F^CK YEAH MATE! That's the thing I wanted to do, thanks a f^cking lot!
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