Outerra forum

Anteworld - Outerra Game => Tech demo, support, updates => Topic started by: andfly on October 18, 2014, 03:57:05 pm

Title: Help for the "velocity" method
Post 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 ....
Title: Re: Help for the "velocity" method
Post by: cameni on October 19, 2014, 02:18:26 am
You probably want the speeds in model space:
Code: [Select]
var speed = this.velocity(true);

var forward_speed = speed.linear.y;
var roll = speed.angular.y;
Title: Re: Help for the "velocity" method
Post by: andfly on October 19, 2014, 11:10:01 am
You probably want the speeds in model space:
Yeah, I wanted the speed refer to the ECEF coordinates.
Thank you very much, Cameni.