- Home /
Question by
Vinnie420 · Dec 20, 2015 at 11:12 AM ·
collisioncollidertriggerontriggerenterontriggerstay
OnTrigger event when colliders are already touching eachother
hi guys, i have a gameobject wich moves towards another gameobject when a certain boolean becomes true, and when they touch i destroy the other gameobject when OnTriggerEnter fires, but sometimes the colliders are already toucing when the boolean becomes true, this means OnTriggerEnter will not fire, nor will OntriggerStay, is there any way i can still detect this collision?
Comment
Answer by allenallenallen · Dec 20, 2015 at 02:10 PM
OnTriggerStay should work though. Are you sure one of the colliding game objects have Rigidbody attached?
Your answer
Follow this Question
Related Questions
Inverse of OnTriggerStay? 1 Answer
Detect when a trigger has entered a collider 1 Answer
Trigger Spawning? 1 Answer
Colliding two GameObjects 1 Answer
OnTrigger* triggered only once 1 Answer