- Home /
Two Moving Sphere Colliders with Continuous Dynamic miss each other
So, I have two moving objects with Continuous Dynamic collision settings on a Sphere Collider. My problem is that the collision doesn't seem to respond correctly when one object is moving away from the other. Any ideas how else I can work this kink out?
"When one object is moving away from the other"
How can two objects travelling in opposite directions ever collide?
One has an expanding collision radius that overlaps the other
Answer by Clockwork Fromage · Feb 19, 2012 at 12:29 AM
it could be tunneling if they are moving very fast although i dont think this is the problem your getting ,
if it is try this script , it solved all my tunneling problems
http://www.unifycommunity.com/wiki/index.php?title=DontGoThroughThings
Answer by Whelandrew · Feb 19, 2012 at 07:54 PM
I added your suggested tunneling code, but it did not change the outcomes. The image below demonstrates my issue. The blue explosion is a stopped object with an expanding collision sphere. The little green guy is moving away from the explosion. You can see that the sphere colliders are overlapping each other. However, this should cause the green sprite to be eliminated, but it just passes through. This only happens when the moving sphere collider goes beneath the center point of the expanding sphere collider.
Your answer
Follow this Question
Related Questions
Sphere Colliders Diminishing Returns 0 Answers
Issues with Continuous Dynamic collision. 3 Answers
Continuous collision detection - unnatural behaviour 0 Answers
How to move multiple dynamic gameobjects with one moving platform which is controlled by the player 0 Answers
Unexpected position of contact point from sphere-sphere or sphere-capsule colliders 0 Answers