I have my character model, which has a box collider encompassing it. The character model has an invisible cylinder around its waist that has a circle collider attached.
I'm trying to lower to speed variable when the circle collider touches something. How do I do this?
Ok so you need to change your code in OnTriggerStay to use the name of the object you are hitting. The code you have at the moment is trying to find a script called clipcheck.
answered May 26 '12 at 04:13 PM
Sphere collider, not circle. Circle is 2D.
Why do you need an invisible Cylinder ? A gameObject with only the collider would do the same.
Is that code on that gameobject, the one with the sphere collider ?
Are there any game object physically moved that can enter that object, or is it the one moving ? The latter case will not raise trigger events. There is a way, though.
answered May 26 '12 at 04:16 PM