Vehicle Rotation Angle Detect
#1

Have a nice day.
Hi, I would like to identify the angle of tool rotation.
Is something like this possible, how can I do ?
Thanks..
Reply
#2

What do you mean by "Angle of tool"?
Reply
#3

Do you want the Euler Angles (rx,ry,rz) from a vehicle?

If yes, look at the QuaternionStuff Plugin.

Get the vehicle Rotation Quat (GetVehicleRotationQuat) and then use QuatToEuler.
pitch, yaw, roll is rx, ry, rz. You may have to invert all 3 (-pitch, -yaw, -roll) to get them right for vehicles.
Reply
#4

around the vehicle (RZ), 360 degree. that's it, very thanks
Reply
#5

So you don't need rX and rY?
Use GetVehicleZAngle then :P
Reply
#6

Quote:
Originally Posted by NaS
Посмотреть сообщение
So you don't need rX and rY?
GetVehicleZAngle then :P
yeah this was, RZ is actually just enough but Add to my library I have to be in the future.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)