I figured it out. I switched transform.position to gameobject.transform.position since I'm using this with Unity's default FPS character controller I want it to be relevant to that gameobject.
↧