That’s some stupid question, but why it is not work?
var megaboomBall : Transform;
var laCamera : Transform;
function OnCollisionEnter()
{
Instantiate(megaboomBall, transform.position, Quaternion.identity);
Instantiate(laCamera, GameObject.Find("mainCamera").transform.position, GameObject.Find("mainCamera").transform.rotation);
Destroy(gameObject);
}
It isn’t working with everything, but objects what can fall, fly etc., can collide with the plane.
The main question about all errors:
“Why it is happening?”