- Home /
Question by
gogo199432 · Sep 15, 2013 at 10:11 AM ·
triggerplayeraichecktransform.
Check if transform is in trigger
Hi guys
For my AI script I need to be able to check if a transform.position (last player sighting)is inside a Trigger. Is it possible and if it is how?
Thanks in advance :)
Comment
Answer by Slobdell · Sep 15, 2013 at 01:53 PM
But my thing that has to be detected isnt a gameobject only a coordinate.. :)
Put an empty game object at the coordinate and add a collider to it. You now have an invisible trigger. Also, that is not mentioned in your original question...