beo6 Posted May 26, 2013 Share Posted May 26, 2013 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. Quote Link to comment Share on other sites More sharing options...
Admin Posted May 26, 2013 Share Posted May 26, 2013 I would continually call PhysicsSetPosition() in the UpdatePhysics hook. Quote Link to comment Share on other sites More sharing options...
beo6 Posted May 26, 2013 Author Share Posted May 26, 2013 Thanks. works good. i just needed to SetGravityMode(false) because gravitation pulled it down so it never reached the desired position correctly. 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.