- Home /
why mesh collider penetrate box collider?
A: sky blue part, 4 cylinder shape mesh colliders(convex), spring joint, rigidbody
B: brown, 3 box colliders, rigid body
When I play unity. A penetrates B. I don't know why.
Answer by A_Lego · Oct 31, 2018 at 05:30 AM
How are you moving/interacting with them? This single picture doesn't give us much information but if your in play mode(Rigidbodys won't work until play mode has begun) and your moving the objects using "gameObject.transform.position = blahblahblah" then that's the issue. You would need to use Rigidbody.position or Rigidbody.MovePosition
Answer by hannacho700 · Oct 31, 2018 at 06:27 AM
I didn't add script(code). Just rigidbody and spring in each wheels. So I don't know why mesh collider can penetrate box collider
Do you have "is Trigger" enabled? That allows physics items to go through it but triggers a function in script.
I don't check "Is Trigger". Because, when i checked "Is Trigger" mesh collider didn't penetrate box collider. but mesh collider penetrated floor. floor is made with mesh collider.
Thank you. I found solution. I didn't check "Enable Collision" in Spring Joint
Answer by gowthamact2022 · Nov 30, 2021 at 11:32 AM
From my Understanding ...Make the Object(Cylinders) as child of that cube...
Your answer
Follow this Question
Related Questions
Colliders, Mesh or Box? 1 Answer
Mesh.CombineMeshes - what happens to colliders? 0 Answers
Mesh collider not working as expected 2 Answers
Note Pad not flipping back 1 Answer