Teleport CharakterController

Hi out there, in my new game, Pacman3D (not realy new but very special), I need to teleport my character. I use the build in characterController but when it hit the teleport collider nothings happens. i try it with:

function OnControllerColliderHit (obj : ControllerColliderHit){ if(obj.gameObject.name == "Tor1"){ transform.position = Vector3(xp , 3.3 , yp); } }

why this wont work??

greetings from germany ThisIsTom

I would strongly suggest you use triggers:

http://answers.unity3d.com/questions/4175/moving-teleporting-player-and-camera-when-they-enter-a-certain-area

Rather than using colliders in that way, which btw will be called every time your character hits the ground (which is every frame pretty much!).