About Store Forum Documentation Contact



Post Reply 
How to change World veclocity to local velocity?
Author Message
derek Offline
Member

Post: #1
How to change World veclocity to local velocity?
Hello~

I want to know how to change actor.vel() form world velocity to local relativeVelocity.

Thanks!!
08-02-2012 03:33 PM
Find all posts by this user Quote this message in a reply
derek Offline
Member

Post: #2
RE: How to change World veclocity to local velocity?
ok, I found the answer.

Vec localVel = actor.vel().div(actor.matrix().orn(), true);

Vec worldVel = localVel.mul(actor.matrix().orn());
08-03-2012 07:21 AM
Find all posts by this user Quote this message in a reply
Post Reply