I have my main camera attached to the third person controller. I created a script I put on the camera I use to pan camera left and right and look up and down, it works great. My camera floats about 2 unity units above my charatcer’s collider. All water is at level 0. So when my character collider’s transfrom.y is below zero I want to add fog for an under water effect and make air bubble nioses. My problem is I cannot get a reference to the collider on the parent object. Lets say I could get that reference all I would have to do is check this value…
myCollider.transform.position.y
Can anyone help me get a reference to that component. My camera is a child of the Third Person Controller.
Thanks In Advance