Jump to content

SetVelocity Question


Guest Red Ocktober
 Share

Recommended Posts

Guest Red Ocktober

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

Link to comment
Share on other sites

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().

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

Guest Red Ocktober

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...