Jump to content

Getting velocity of an object


Duion

Recommended Posts

So there is the getVelocity command which gets the velocity, only problem is, it returns the velocity for each axis x,y,z, to make it more complicated it can be positive and negative as well so you could get a result like +5.2, -2.4, 0.1 which means +5.2 into the positive x-axis and 2.4 towards the negative y-axis and 0.1 upwards.


How you get the objects speed now in meters per second like it is used in the datablock?

Do I really have to do complicated math to convert all of this values into one positive number or is there a better method?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...