- Home /
Sometimes my character falls through the ground?
I have colliders, ground checking etc for double jumping - but now and again my character falls through the ground - not sure why?
Possibly an fps issue? Are you doing the calculations in Update or FixedUpdate?
Answer by FM-Productions · May 05, 2017 at 04:35 PM
Hi,
I don't know your code, but if there aren't any logical errors, my best guess is that the character is clipping through the platform colliders from one frame to another. Meaning that in frame n, the character is above the platform, in frame n+1 he is already below it without colliding with the platform in between. If this is the case, you can set the collisionDetectionMode of your Rigidbody2D attached to your character from "Discrete" to "Continuous", this should also detect collisions during movement instead of only checking for collisions in a fixed frame.
Your answer
Follow this Question
Related Questions
Jittery movement when colliding with a wall 2D. 0 Answers
How to stop a character from moving out of player's control? 0 Answers
How to move a Game Object from a script not attached to it. 1 Answer
Is there a way to make the camera collide with specific objects - 2D 1 Answer
Boat collides with track(plane) below it while moving forward 0 Answers