function Move()
{
var movementSpeed : float = 5;
var sideSpeed : float = 5;
var speed : float = 100;
var jump : float = 0;
var jumping : float = 100;
jump = Physics.gravity.y ;
var cc : CharacterController = GetComponent (CharacterController);
var forward = Input.GetAxis("Vertical") * movementSpeed;
var side = Input.GetAxis ("Horizontal") * sideSpeed;
if( cc.isGrounded && Input.GetButtonDown("Jump"))
{
jump = jumping;
}
var move = Vector3 (side , jump, forward);
cc.Move (move * Time.deltaTime);
}
Well the main problem i was having was the jump was too abrupt.
When i pressed the Jump Key it went in the to the required height and stopped but fell down fast.
How do i get it too go up smoothly and down smoothly?