- Home /
Dectect collision, but not actually stop the object?
I was wondering if it was possible to make an object that detected a collision when something hit the collider, but it also allowed the object to pass through it unhindered. I am trying to get a charactercontroller to walk through a particle system, and activate a script in doing that (I have a collider on the particle system, and that is how the script current works). If there is another way to activate the script when the charactercontroller touches it, or a way to allow things to go through a collider, that would be appreciated.
Answer by zannghast · Jan 05, 2011 at 02:11 AM
One way would be through the use of the following method:
- Set the isTrigger property of your particle system's collider to true;
- Use the OnTriggerEnter function in a script attached to the particle system. More info on this function can be found here: OnTriggerEnter
Your answer
Follow this Question
Related Questions
Animation Script not working. 1 Answer
Generating A Custom Collider For Multiple Meshes - Script 2 Answers
Finding the collider of a variable object (Javascript) 0 Answers
Unity 2D Colliders not Colliding 2 Answers
Raycasting fail 1 Answer