Hey guys! I jave some trouble.
I have box - fbx mesh with mesh collider(without rigidbody). On mouse down i drop inside the box gameobject with rigidbody and cube collider. But when i animate box or moving it my rigidbody goes through walls and drops one the floor, what should i do? Thanks!
1 Answer
1Assuming that the problem you are having stems from moving the container-
This happens because when you move the outer box’s transform, Physics does not detect the movement as velocity, and so never forces the box inside to stay in one place.
To fix this, you should attach a kinematic rigidbody to your mesh collider, and the set the Collision Detection Mode on both boxes to ‘Continuous Dynamic’. This makes sure that the locations are interpolated between frames, and improves physics accuracy.
Sorry, you have two boxes here. Which one are you animating?
– syclamoth