25.05.2015, 11:34
Take this function from Stepashka. It converts quats to degrees to use.
This will return the x,y,z rotations of the vehicle in degrees. With this you can calculate the rocket's rotation.
Now use one of theses ( again i haven't checked which) in the following code:
Fill in the < and > parts. And it should return your vertical change in distance.
Quote:
must live simply!!!
PHP код:
|
Now use one of theses ( again i haven't checked which) in the following code:
PHP код:
Vertical Distance = <Horizontal Distance> * floattan( <W in degrees> , degrees);