- Home /
Player(box) randomly falls through objects.
Hello!
I'm making a classic sidescroller game. It reminds of the game 'The Impossible Game'. I have a box(player) that has a Charachter motor, FPS input that only allows it to jump, and a script that moves it to the right at all times at a constant speed. The box has a child camera following it.
I have some areas that the player can't touch, or he will be taken to a checkpoint. And I have some platforms which the player can jump from to avoid the areas. But, every now and then, the player just fall straight through a platform. It happens like every 30 platform maybe(average), and it's just random ones every time, and the next time I try it works. My platforms are just normal cubes with mesh filter, box collider, mesh renderer and a color material. Why does this happen? :(
do you have rigidbody , collision = continuous ? if so then maybe if you decrease the time step value in Edit> Project> Time it will be better
Would it work without the Character motor? $$anonymous$$aybe that'll do it. Not home atm so can't try..
Answer by VeritasGandalf · Mar 10, 2013 at 09:59 PM
Well, if I set rigidbody to the player, everything just goes flying around, so does it on the platforms. To disable this, I have to check Kinematic, but then it doesn't do anything. Also changed time step from 0.02 to 0.01(?), didn't help.
Your answer
Follow this Question
Related Questions
Terrain collider is inversed! 0 Answers
objects going through each other 3 Answers
Projectiles passing through objects 0 Answers
My player glitching on moving collider 0 Answers
Player Falling Though Floor After Build With Unity IPhone 0 Answers