private bool HeliIsAlmostStill() { Physics.Raycast(heli.GetAltitudePoint().position, Vector3.down, out hit, layerMask); return(heli.GetVelocity( ) <= minLandingVelocity && (hit.distance * worldScale) <= minLandingAltitude); }
private void UpdateUI( ) { float velocity = heli.GetVelocity( ); label.text = ((int)(velocity * 3.6f)).ToString( ) + " km/h"; // m/s -> km/h }