I try to make this work: http://www.unityprefabs.com/tutorials/wormgame/unity3d-basics-tutorial-making-a-video-game.html
When adding MoveAround script the character starts falling down through the floor to the infinity (Y direction).
var speed = 3.0;
var rotateSpeed = 3.0;
function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSpeed);
}
@script RequireComponent(CharacterController)
The problem is here.
controller.SimpleMove(forward * curSpeed);
What is wrong with the default script example?