void Start( ) { Assert.IsNotNull(heli); Assert.IsNotNull(altitudeToSeaLabel); Assert.IsNotNull(altitudeToGroundLabel); altitudePoint = heli.GetAltitudePoint( ); worldScale = heli.GetWorldScale( ); Assert.IsNotNull(altitudePoint); }
private bool HeliIsAlmostStill() { Physics.Raycast(heli.GetAltitudePoint().position, Vector3.down, out hit, layerMask); return(heli.GetVelocity( ) <= minLandingVelocity && (hit.distance * worldScale) <= minLandingAltitude); }