# prabolic jump problem

i want a parabolic jump;
here i apply a formula but when ever i decreases theta means angle below 45 degree than its change direction and also
this
VoX=Vo *(Mathf.Cos(theta ) );
VoY=Vo *(Mathf.Sin(theta) );

give value in radian how i convert this radian to degree i also apply RadToDeg but it not working too.

plz help me .
… … … …

// X and _-Y-Direction
float VoX;
float VoY;

public float Vo; // speed or velocity
public float theta;

float VfY; //negative accelaration downWard due to gravity;
float VfX; // it always be zeero because it is horizontal;
float t;// amount of time;
float Dy; // displacement in upward direction
float Dx; // displacement in x direction
float ay;

// Use this for initialization
void Start () {
Vo= 13.0f;
theta=45.0f;
VfX=0.0f;
VfY= 0.0f;
ay=-9.8f;

}

// Update is called once per frame
void Update () {

VoX=Vo *(Mathf.Cos(theta ) );
VoY=Vo *(Mathf.Sin(theta) );

t= ((VfY-VoY)/ay) * Time.timeScale;

Dy=(VoY *t) + (0.5f ayt);
Dx=VoX * t + (0.5f 9.8ft);

//Dy=(Vy tim) + (0.5f -9.8ftim);
//Dx=(Vx * tim) + (0.5f * 9.8f
tim);

if(Input.GetButtonDown(“Jump”))
{
rigidbody.velocity = new Vector3(Dx,Dy,0 );

}

}
}

1. If you use code tags in the forum your code will show up in a nice formatted way
``````	You just put
``````radianNumber*Mathf.RadToDeg;