Okay, so from my previous question I have now succeeded in adding a force to push the aircraft forward (the engine).
However, I now need to simulate the lift created underneath the wings of the aircraft, to increase the altitude of the aircraft! I’ve done my research blah blah and I’ve established that when my aircraft reaches a speed of 100 m/s, it will begin to lift off the ground but no matter what I do, I can’t get it to work!
I’m using:
public int TakeOffSpeed = 100; //Speed at which the aircraft lifts
void Start ()
{
}
void FixedUpdate ()
{
if(Input.GetButton ("Throttle")) //Throttle is increased using 'W' key.
rigidbody.AddRelativeForce(0,0,-50);
if(rigidbody.velocity.magnitude.Equals(TakeOffSpeed))
rigidbody.AddRelativeForce (0,200,0); //Force pushing upwards
I’m not sure why it’s not working. I’ve tried different values but still nothing.
Thanks