1
Ask a Question / Box 2D Simple Push Settings?
« on: January 26, 2016, 12:26:25 pm »
I'm trying to figure out a very simple kind of physics and really can't seem to get the right settings with Box 2D.
My goal is to have character A push character B. Character A moves 20px/step. When character A collides with B and continues to move I would like both characters to move at 20px/step. When character A stops I'd like B to stop immediately also.
I have no need for any other physics related interactions. This is the only one and I was hoping to avoid using gravity, friction, linear dampening, etc. as I don't want to introduce any possible weirdness from Box 2D.
Any suggestions or solutions would be helpful, thanks everyone.
My goal is to have character A push character B. Character A moves 20px/step. When character A collides with B and continues to move I would like both characters to move at 20px/step. When character A stops I'd like B to stop immediately also.
I have no need for any other physics related interactions. This is the only one and I was hoping to avoid using gravity, friction, linear dampening, etc. as I don't want to introduce any possible weirdness from Box 2D.
Any suggestions or solutions would be helpful, thanks everyone.