Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Local Angular Velocity?

Author
Message
Omikron
15
Years of Service
User Offline
Joined: 12th Mar 2004
Location: UK
Posted: 3rd Aug 2006 00:20
If I have the following subroutine which controls a box-shaped playerObject, how could I make it so that the angular velocity is controlled at a local level?

Currently, and you'll have to bear with my lack of angular skills, it seems to be rotating in respect to a global axis.

I've scanned over the documentation, but i can't find any form of phy set rigid body local angular velocity, like the phy add rigid body local force command.

Am I being silly?

And what the heck is torque anyway!?



Omikron
15
Years of Service
User Offline
Joined: 12th Mar 2004
Location: UK
Posted: 3rd Aug 2006 00:22
Blimey, who would've thought.


.. Not me, apparently!

Mike Johnson
TGC Developer
16
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 3rd Aug 2006 00:25
Torque is a rotational force. Try using the command "phy add rigid body local torque" to spin a rigid body around on its local axis.
Omikron
15
Years of Service
User Offline
Joined: 12th Mar 2004
Location: UK
Posted: 3rd Aug 2006 00:30 Edited at: 3rd Aug 2006 00:31
Sweet as a peanut!

It's working, i now have one crazy-bum spaceship flying about ;D

Login to post a reply

Server time is: 2019-04-26 12:01:36
Your offset time is: 2019-04-26 12:01:36