Hi all,
I have a scene with 9 plane objects .i have created a ball instantiate and i want to place the balls on all those planes.if i place a ball into 1st plane it want to be hide make all other 8 planes are visible…
and when i place it into 2nd plane it also want to be hide with 1st plane and other 7 are visible…
the process are simultaneously upto all planes will be covered.
ya i have already attached colliders on my gameobjects. i think that OnCollisionEnter() function is not working which was said by gavin. problem in that only…
function OnCollisionEnter (collisionInfo : Collision) : void
Description
OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider.
In contrast to OnTriggerEnter, OnCollisionEnter is passed the Collision class and not a Collider. The Collision class contains information about contact points, impact velocity etc. If you don’t use collisionInfo in the function, leave out the collisionInfo parameter as this avoids unneccessary calculations. Note that collision events are only sent if one of the colliders also has a non-kinematic rigidbody attached.
Thanks for the lines, I can also use this for a game where you can shoot peoples body-armor guns of and have them come back on when the hitpoints are right.