Jump to content

PhysicsSetPosition and remove Force


beo6
 Share

Recommended Posts

Hello everyone.

 

i set the position of an entity by PhysicsSetPosition because SetPosition sets the position for a short time and then the Physic engine does set the position back where it was.

 

That is of course logical.

 

So i use PhysicsSetPosition but i don't want it to keep the force the entity had before. Currently it just continues moving into the direction it moved before and i only have the function to add a Force with AddForce or AddTorque.

 

 

So how to do this the best way?

 

Thank you for every help.

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