Sorry if my question is a bit strange, but basically I want the player to be able to roll into objects and the object is destroyed.
Now, I have a script that does this, but my problem is, when the player collides, they come to a stop and bounce back form the object. Is there a way the player can roll into objects and go right through them whilst destroying them?
This is the script I have:
function OnCollisionEnter ( collision : Collision) { if (collision.gameObject.name == "House Prefab") Destroy (collision.gameObject);
if (collision.gameObject.name == "PalmTree")
Destroy (collision.gameObject);
if (collision.gameObject.name == "Pinetree1")
Destroy (collision.gameObject);
}