- Home /
enable disable objects when objects collides with other object
how can i disable a object when the object collides with another object and changes to the object that it collided with ie. object a collides with object b and changes to object b.
Comment
Answer by Unamine · Jun 09, 2011 at 02:02 PM
I think so, you must activate the object isTrigger:
object : Transform;
function OnTriggerEnter (other : Collider) { if(hit.object) { object.enabled = false; } }
Hope this help ;D ask any questions
were do i put this script to? player object or the other object?