I'm handling applying gravity on my own: that way, if I have a b2EdgeChain marked as non-slidable, I don't apply a gravitational force to my player and he won't slide when he's at rest. The problem though is say I'm on an incline of some sort and I jump: upon landing, the initial impulse will cause me to slide (which is to be expected). How would I go about overriding this force so that where I jump from is where I land, assuming no other lateral force is applied? Is this something that can be accomplished via the collision callbacks or is it already too late by then?
b2EdgeChain: preventing sliding when landing on incline...
General DiscussionI suppose you could set the Linear Velocity of your player to 0 right when you hit the slope. (So yes, using, but not during the collision callback).
Original thread: https://box2d.org/forum/viewtopic.php?t=3086