Hello. I’m making an Aircraft simulation with Unity based on the cessna skylane (or 182). The maximum speed of this plane is 296 km/h and his weight is 894 kg. I need to know how much force( and by force I mean the thrust) i need to add to the rigidbody which represents the plane to hit those 296 km/h. I wasn’t able to find this info on Google. So I need to search it myself but I have no idea how to do it!
I thought I could use a code like that :
Rigidbody x;
if(x.velocity.magnitude == 296)
{
// Save the thrust force at the rigidbody hit that speed
}
Knowing that I use this code to add Thrust:
if(Input.GetKey(KeyCode.UpArrow))
{
thrustForce = thrustForce + 15f;
x.AddRelativeForce(Vector3.forward * thrustForce * Time.deltaTime, ForceMode.Acceleration);
}
if (Input.GetKeyUp (KeyCode.UpArrow))
{
thrustForce = 0;
}
Please help me.
(Sorry if there are some mistakes I’m not a native speaker)