Guest Red Ocktober Posted March 26, 2010 Share Posted March 26, 2010 ok... as i understand things, a velocity is a vectored force... right... so if i set a positive velocity to a body... then i turn the body... it's supposed to head off in the direction it is pointing to... right... so far though, things seem to be working differently... the body seems to turn, but keeps moving in the original direction... i'm using turnentity to turn the body... and setvelocity to impart motion... what am i doing wrong??? thx --Mike Quote Link to comment Share on other sites More sharing options...
Josh Posted March 26, 2010 Share Posted March 26, 2010 SetVelocity(velocity,0) By default the velocity vector is in global space. By the way, you should use CalcOmega() and AddOmega() to turn the body, not TurnEntity(). Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted March 26, 2010 Share Posted March 26, 2010 thx Josh.... yeah... i've got something that looks like it's working now using setbodyomega() and addbodyforce() should have a working controllable sub by mid day ... well, a boat at the very least thx again... --Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.