I need to fix the dynamic body position so that it would not rotate and would not move even if there are other forces, collisions and so on. Let me first explain why I need this.
I have a dynamic body which is the game character. There are non-moving objects that the game character should land on and get some energy as long the character is in contact with those bodies. As these bodies are non-moving it would be natural to make them Static
or Kinematic
. But in my case I cannot do that, as far as there is another Kinematic body with which all the game items should be collided and on EndCollision
event those items should be removed. But in Box2D static and kinematic bodies don't collided with each other. So I have to make my game item on which the character should land Dynamic
but still should be sure that it will not move. How should I do this?