- Home /
When I throw the projectile, it triggers the land collision before landing on it
UPDATED ( I had Collision Detection -> Continuous Speculative, which causes the problem. I turned it into Discrete and solved it.)
This picture represents the approximate position of the projectile where it triggers the collision of the land.
Y-scale of the land is 0.1;
Hello. This is projectile script -> https://pastebin.com/sNsHjNnM
Yes this can happen as collision detection is not pixel perfect. You can check the leeway that the physics solver counts as collision in the Physics settings of your projects. Don't set this far lower than it is. Only do this when you really know what you are doing as this can mess with unitys physics and performance.
Normally this case does not really matter as our minds will not really see this if the ball simply bounces off. Can you share some more detail why this offset matters in your case?
I had Collision Detection -> Continuous Speculative, which causes the problem. I turned it into Discrete and solved it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613055105im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can i translate my object? 1 Answer
OnColliderEnter2D not working 2 Answers
Bullet/Projectile Collision Question 2 Answers
I need help with Trigger collision detecting tags 0 Answers
Colliding with multiple objects 1 Answer