- Home /
Allow one object to pass through another whilst keeping collisions.
I want to create an envirionment where one object is able to fall through another, however when it does fall through it I still need to activate a function, so I need to test for collisions still (unless there is another way of doing this) whilst still letting it pass through the object in question. If possible I would like to do this in javascript.
Thanks, Tom.
Answer by 3Dx2Yz · Jan 22, 2013 at 12:11 PM
I think what you need is a trigger. A trigger is ignoring the physics engine but still can detect collisions.
To activate the trigger function you need a Collider on your GameObject and check the trigger box. Then you can ask for collisions using the OnTriggerEnter function.
Your answer

Follow this Question
Related Questions
Weird behavior with types in Unity JScript 2 Answers
Display Object Positions in Gui Box 2 Answers
Whats wrong with this simple code? 2 Answers
Unity CS1519 Error 1 Answer
Simple Topdown Movement Problem 1 Answer