I have two dynamic bodies one is at rest and one is in motion. When the dynamic body collides with the stationary body. The stationary body moves a little on the opposite direction. I wanted to know if there is a way for me to make the stationary body not move after collision in the opposite direction. I am using chipmunk physics
Is the stationary body set to be “static” as opposed to “dynamic”.
No both the bodies are dynamic. Currently I fixed his problem by setting the friction on the ground.
There’s your answer then; make the non-moving body static, as that’s precisely what it’s for.