- Home /
Player falls through fast moving platform
Hi all,
So when my player is standing on an animated platform all is well, the platform can move rotate do whatever it wants and the player will persist to stand ontop. But when I move the platform at a faster rate, like jerk the platform upwards the player will fall right through the platform collision?
Any ideas how I can combat this?
Thanks
Have you tried to reduce value for "$$anonymous$$in Penetration For Penalty" at Physics manager http://docs.unity3d.com/$$anonymous$$anual/class-Physics$$anonymous$$anager.html
Change from default value 0.01 to 0.001
Answer by Baste · Sep 17, 2014 at 10:30 AM
How are you moving the platform?
If you're setting the transform position, or using transform.translate, then the platform will be moved and THEN the collision detection will kick in.
The correct way to move a platform like that quickly - or in general - is to use Rigidbody.MovePosition. That will make collision detection happen as it should. If the platform doesn't have a rigidbody, it should have - stuff that moves generally need rigidbodies to have their colliders behave correctly.
Im moving the platforms with animations, the issue is the animations are quite intricate meaning to execute the animations via code would be extremely long winded and hard. Anymore ideas?
Your answer
Follow this Question
Related Questions
Detect if ball is on a platform or if it fell 4 Answers
Publish Error 2 Answers
Need help with respawn after falling. 3 Answers
Again about the platforms... 0 Answers
One-way platform's side causes collision with Platform Effector 1 Answer