Hello
What i need to do is very easy in the principe, but i can not make it work…
i use a trigger, and an object. When the object enter in the trigger, just write in the console : “i enter the trigger”.
here is the script :
function OnTriggerEnter (other : Collider)
{
Debug.Log("I enter the trigger");
}
When the object enter the trigger… nothing happend
Both objects will need to have a collider for this to work.
yes, they have, both allready, but i just find the problem… the collider need a rigidbody, and as the object play an animation, need to check on “is kinematic”… i don’t realy get why should an object have a rigidbody to be able to trigger something, but this resolved the problem
Thank you
Yeah, not all collision or trigger combinations send messages to each other.
The unity manual page for sphere/box/mesh colliders lists the collision matrix and messages sent to/from triggers and colliders of different types. I still find myself jumping to those pages when troubleshooting absent trigger or collision messages.