|
I know of the Physics.IgnoreCollision function, but is there a way to just simple....ignore every collision? Or disable the collider mesh in code?
(comments are locked)
|
|
If you still want to check if an object collided to another but don't want the physics to react with the object then you check or enable the "IsTrigger" in the Inspector. through the code it would be:
Hope that helps. Thanks! Never even thought of that lol.
Mar 25 '10 at 07:54 PM
Kith
Just an fyi, you shouldn't be setting collider.isTrigger inside of the Update loop as it occurs every frame. instead set it in either Awake() or Start()
Mar 25 '10 at 08:14 PM
equalsequals
Yeah I figured lol. I just set it once in an appropriate function and it's working fine.
Mar 25 '10 at 08:22 PM
Kith
(comments are locked)
|
