death script remains ineffective

my first person controller has rigidbody; the enemy has a mesh collider. After this script is activated, i run into the enemy and nothing happens.

var player : GameObject;

var enemy : GameObject;

function Update()

{

if(Vector3.Distance(player.transform.position, enemy.transform.position) <= 3)

{

player.transform.position = Vector3(3184.726,-0.7071776,3728.418);

}

}

Maybe you need to put a check mark on Mesh Collider “Convex” like on the picture :