Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: Help for the "velocity" method  (Read 5485 times)

andfly

  • Sr. Member
  • ****
  • Posts: 347
Help for the "velocity" method
« 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 ....
Logged
I do not know the English language. I use Google Translate. I hope it's all understandable.

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Help for the "velocity" method
« Reply #1 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;
Logged

andfly

  • Sr. Member
  • ****
  • Posts: 347
Re: Help for the "velocity" method
« Reply #2 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.
Logged
I do not know the English language. I use Google Translate. I hope it's all understandable.