Why won't standart FirstPersonController accept new position?


I wanted to move my player (standard FirstPersonController) to a spawn point when they collide with anything. The following doesn't work, and yet if I put the same line in Start() or Update() it works fine. (I've used Vector3.zero just to rule anything else out)

function OnControllerColliderHit(hit : ControllerColliderHit)
        transform.position = Vector3.zero;

I'm wondering if you have another script moving your controller (which is probably being called in update, screwing up the above code).

That'd explain why it's showing the position correctly in the collision, but (seemingly) not persisting it

Probably OnControllerColliderHit is never called. Check if your setup (Colliders etc.) is correct.