Outerra forum
Anteworld - Outerra Game => Tech demo, support, updates => Topic started by: andfly on October 18, 2014, 03:57:05 pm
-
I still need to put test the patience of Cameni with a technical question.
How to use the method "velocity" refers to the vehicle physics?
How can I extract the values of the linear and angular velocity of the model?
Can you give me an example of the correct grammar to use?
Again, thanks in advance ....
-
You probably want the speeds in model space:
var speed = this.velocity(true);
var forward_speed = speed.linear.y;
var roll = speed.angular.y;
-
You probably want the speeds in model space:
Yeah, I wanted the speed refer to the ECEF coordinates.
Thank you very much, Cameni.