- Home /
Child Object's collider setting off triggers
Hey, I have 2 colliders attached to my player. One needs to set off triggers and one should not, is there a way to detect which of my colliders is in a trigger event other than placing the script on the other object and comparing the tags. The OnTrigger events seem to be just geared towards the other colliders, but I want to find out which, out of the 2 colliders on my player is in the collision.
Any ideas?
Answer by highpockets · Feb 23, 2014 at 07:06 AM
I found my way around this by by setting up a trigger state where if you enter the trigger and do not exit before you enters again, there will be no action and vice versa on exiting by checking if it exits twice before an action occurs. This was doable because this portion of my game is in 2D
Your answer
Follow this Question
Related Questions
get only one colliding body 3 Answers
How do I prevent multiple triggers using OnTriggerEnter? 1 Answer
changing gravity OnTriggerEnter 1 Answer
Trying to make object turn red OnTriggerEnter 0 Answers
Multiple triggers/collisions 1 Answer