Physics problem

Hi!

I’m having with the phyics of my game which is basiclly a good old fashion platformer (mario style)

I have a player which is a dynamic body, then I have a small level made with Tiled which is set to kinematic.

This is all working great so far, the player stands on the ground and I can round around and so on.

The problem I’m having is when the player is standing partially outside a gap on the map.

For example, if I have a straight ground, then a gap which the player needs to jump over and then some straight ground. If the player slowly walks up the to edge of the gap the player will start to tilt and 'fall’down in the gap.

I would like the player to be able to walk out over the edge a bit without this happening, is that possible when I’m using the physics engine?

I hope I’ve described the problem clear enough.

Thanks in advance!

Player.isFixedRotation = true

That will solve your issue :slight_smile:

Thanks a bunch! I figured there was something like this, just couldn’t find what it was

Player.isFixedRotation = true

That will solve your issue :slight_smile:

Thanks a bunch! I figured there was something like this, just couldn’t find what it was