MvYawRightSpeed --- What does the value mean?
by Jay Barnson · in Torque Game Engine · 06/04/2007 (1:53 pm) · 1 replies
I'm at work, so I don't have the source code handy... wondered if anybody who knew the answer could shout it out.
What does the value of mvYawRightSpeed and mvYawLeftSpeed really mean? I thought it might be radians per second, but it's moving much too fast for this. Is it radians per frame (in other words, framerate dependent?)
I'm used to just sticking in some value that "feels right," but for some stuff I'm working right now I'd like an exact turn rate.
What does the value of mvYawRightSpeed and mvYawLeftSpeed really mean? I thought it might be radians per second, but it's moving much too fast for this. Is it radians per frame (in other words, framerate dependent?)
I'm used to just sticking in some value that "feels right," but for some stuff I'm working right now I'd like an exact turn rate.
About the author
Jay has been a mainstream and indie game developer for a... uh, long time. His professional start came in 1994 developing titles for the then-unknown and upcoming Sony Playstation. He runs Rampant Games and blogs at Tales of the Rampant Coyote.
Torque 3D Owner Jay Barnson
It looks like this is the amount of rotation in radians per "tick", or 0.032 of a second (31.25 ticks per second). Not framerate dependent (I should have realized this, but I haven't mucked with the source code in a few months and I have a terrible memory).
So if you are looking at radians per second, just multiply it by 0.032 and it should work out. At least it seems to work for my purposes. Hopefully this might be of value to someone else.