- Home /
Avoid Rigidbody Intersection
I've got a problem with intersecting objects, when they intersect with another object, they dont instantly jump away from the collider as in real world, instead they move slowly till they're not intersecting.
In this video I've got a bunch of squares within a sphere collider and when I start the game, it tooks like 15 frames till they get away from the radius of the sphere colider.
In my game, I have a fast object colliding with another objects and it looks really weird when the objects are half way through and sticking out the other side.
Is there a way to avoid the intersection?
if u want them to jump away u need to program that in yourself
Answer by N-8-D-e-v · Aug 23, 2020 at 07:24 PM
Don't put colliders inside of other colliders, it's as simple as that
As I said, I have fast objects and with their speed, it's impossible to not intersect with other objects
i think u need to set, in the rigidbody component, Collision Detection to Continuous
I mean like don't have all of your boxes inside of a sphere collider, that is your problem