Question by
MandMs05whyismynamealwaystakenthisisMYname · May 17, 2019 at 08:25 AM ·
triggerhitbox
How to detect if a trigger box has entered an object?
So I have a 1-dimensional trigger box in front of my camera so that I can trigger things when I look at them. I want to know if it's possible that an object might detect when it enters the trigger box rather than the trigger box detecting when an object enters it.
Comment
Best Answer
Answer by tormentoarmagedoom · May 17, 2019 at 08:53 AM
Heloo Matthew
Yes, but... :D
First, Maybe you should use any of this other ways to know whats in front of camera (and not trigger detection):
Raycast
Renderer.isVisible
Renderer.OnBecameVisible()
Renderer.OnBecameInvisible()
After this, answering your question. If you pretend to be the object who detects if has entred the camera trigger, IT must be done with a script attached to that object.
Bye!
Your answer