- Home /
Collider doesn't transfer to function
http://pastebin.com/VXVKZQKF http://pastebin.com/ZfwiCKWw http://pastebin.com/ug1meFUR GridTrigger.cs
Collider assigned in GridTrigger's OnTriggerEnter doesn't transfer to isTriggered function. Why?
Answer by JCprogrammer · Nov 15, 2014 at 08:49 AM
It depends.
One of the scenarios i had same as yours was that i Expected a gameobject with no Rigidbody attached to it, trigger my Trigger object's OnTriggerEnter Function.
http://docs.unity3d.com/ScriptReference/MonoBehaviour.OnTriggerEnter.html
as the reference above says, you have to have at least one of your objects carrying a rigidbody Component, in order to trigger your OnTriggerEnter function.
yes it can. link below will help you better understand the story of collision detection: http://docs.unity3d.com/$$anonymous$$anual/CollidersOverview.html