- Home /
A question about continuous collision detection and bounce off wall
I created a sphere and a wall using box. They all have rigidbody and the wall has IsKinematic set to true. It is said that fast moving objects should use 'Continuous Dynamic' collision checking method, and I do have set the sphere to 'Continuous Dynamic' and the wall to 'Continuous'. However, when sphere gained enough velocity, the sphere sometimes just crashed into the wall and sticked into it instead of bouncing off. Am I doing something wrong? Please help. Thanks. (I move the ball by changing global gravity.)
Answer by fotaras · Sep 23, 2014 at 06:29 AM
You are doing what you should in that. you should also read about the fixed time step
http://docs.unity3d.com/Manual/class-TimeManager.html
and check this script
http://wiki.unity3d.com/index.php?title=DontGoThroughThings
don't try fixing it if you don't realy need it for a project
Thanks for the help! It works and the ball bounces as intended.