I’ve been learning Unity 3D, slowly. I’m trying to make a maze, and need an event to occur when they reach the finish area.
How do I fetch object location and check if it’s in the target area? Using Javascript.
Thanks for any help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your end area can be treated as a box, you could add a BoxCollider to your scene around the finish area and set its
isTriggerproperty to true. Then you’ll get a callback toOnTriggerEnteron your entity when it enters the area, which you can subsequently use to end the level or whatever.