About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Actor Angular Velocity
Author Message
andargor Offline
Member

Post: #1
Actor Angular Velocity
The actor angular velocity seems to be around world axes, is there a function to get local angular velocity?
05-15-2011 02:39 AM
Find all posts by this user Quote this message in a reply
andargor Offline
Member

Post: #2
RE: Actor Angular Velocity
I've decided to try this in the object update, it seems to work. Is there any thing easier or cleaner?

PHP Code:
    ang_vel = (T.matrix().angles() - lastMatrix.angles())/Time.d();
    
lastMatrix T.matrix(); 
05-15-2011 04:04 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Actor Angular Velocity
I think your code is incorrect, try this:

Vec ang_vel_local = actor.angVel() / actor.matrix().orn();
05-15-2011 01:41 PM
Find all posts by this user Quote this message in a reply
andargor Offline
Member

Post: #4
RE: Actor Angular Velocity
It works! Thanks. I will take a closer look at orn().
05-15-2011 04:34 PM
Find all posts by this user Quote this message in a reply
Post Reply