1
Other Packages / Re: Multi-Purpose Game Starter Kit
« on: July 21, 2014, 11:42:01 PM »
When put in my own terrain the helicopter stay within inches of the ground. I go into the Helicopter script and change the following.
float upwardsForce = 1f - distanceFactor;
upwardsForce *= upwardsForce;
upwardsForce = Mathf.Lerp(10f, 80f, upwardsForce);
upwardsForce *= mRb.mass;
Which works but the helicopter keep floating higher and higher. Is there away to set a maximum height for the helicopter to keep it from floating away?
float upwardsForce = 1f - distanceFactor;
upwardsForce *= upwardsForce;
upwardsForce = Mathf.Lerp(10f, 80f, upwardsForce);
upwardsForce *= mRb.mass;
Which works but the helicopter keep floating higher and higher. Is there away to set a maximum height for the helicopter to keep it from floating away?