Hi everyone,
I would like to create a high resolution 2D game, but I already encountered some difficulties with some basic game objects. I have a character (Rigidbody + Box Collider) with default settings (e.g. Mass 1, Gravity scale 60) as well as a floor (Box Collider).
Everything is fine so far. The character jumps and lands back on the floor properly. The problem appears when the character lands on the floor from a higher distance (e.g. a double jump or falling from a higher platform). As soon as the character hits the floor, it slides a little bit through it, then it’s being pushed up slowly to the correct spot.
I assume this has something to do with the collision detection where the character passes the top of the box collider, then it’s corrected by the physics engine. This is a common issue if the velocity of the character is very high, but this is certainly not the case. Actually it’s relatively slow.
I edited my original question because I thought the problem might be the high resolution in which the character has to move more pixels to travel a certain distance and behind the scenes this is also considered a fast movement. But I tried it with a low resolution and small orthographicSize, and the problem persists.
Short video of the issue:
Anyway, is there any way around this problem (other than continuous collision detection)?
Thanks in advance!