bullet - How to deactivate translation on collision? -
What do I do
I want my player / character to have a rigid body Keep moving along. When my character hits with another RB, Other RB will move forward - but not my character.
What do I need to know
Is it possible to disable the translation of a specific rigid body on collision? if so, how?
Kinetic does not run with rigid body conflicts in the state. Still they still collide and move on to the confrontation for other objects.
You can set the Kinetic State in this way:
body.setCollisionFlags (body.getCollisionFlags () | CollisionFlags .CF_KINEMATIC_OBJECT);
But keep in mind that your body will not be taken from any physical science to your world and you have to manually set it through MotionState.
(Or if you want to move the player by adding the player, you can use the player to set a very high mass and use the movement to reduce the effect on your player I can try to work towards it. I do not know of any clean solutions for this.)
Comments
Post a Comment