So I have a rigidbody object that is supposed to collide with a box collider and stop (not bounce off). I am not quite sure what’s the right way to accomplish that, but what I’ve done is set the mass of the object to .1 and the drag to 10, which seems to work ok.
The problem is, sometimes (usually when the rigidbody is going fairly fast) it goes right through the box collider. The collider registers the hit in OnCollisionEnter, but doesn’t stop the object.
Is there another method I can use to prevent the player from being able to move the object offscreen?
Are U sure your rigidbody object is not asleep ? I had this problem once, and it drowe me nuts until I realized that my objects were put to sleep by Unity. Try to call .awake() on the gameObject