- Home /
Unity Colliders are Overlapping/Intersecting
Hi everyone! I have an issue with colliders intersecting. I've checked everything including the contact offset. I am attaching a screenshot of what is happening. Thanks in advance.
Answer by Ziplaw · Oct 03, 2021 at 11:26 PM
The most common scenarios in which this occurs are:
You're moving the colliding objects using transform.Translate or other non-physics functions, instead of Rigidbody.velocity or Ridigbody.AddForce()
Neither object has a Rigidbody attached to it
Both objects have a Rigidbody and are moved using Ridigbody.AddForce(). So this isn't the issue.
Can you add an inspector pic of both of the gameObjects that are intersecting?
Answer by TalkingBlah · Oct 04, 2021 at 04:58 AM
as from the two pics you uploaded i don't see a collider attached to both of the objects. the collider enemy have has been removed that might the problem
It's not as the collider is now a child. I modeled the cube in Blender so it's nested inside the prefab.
Your answer
Follow this Question
Related Questions
How to change colors in turn? 1 Answer
My vehicle goes through walls and floors disregarding all colliders 2 Answers
Physics.IgnoreCollision not working 0 Answers
Distribute terrain in zones 3 Answers