예제 #1
0
    private bool HeliIsAlmostStill()
    {
        Physics.Raycast(heli.GetAltitudePoint().position, Vector3.down, out hit, layerMask);

        return(heli.GetVelocity( ) <= minLandingVelocity && (hit.distance * worldScale) <= minLandingAltitude);
    }
예제 #2
0
    private void UpdateUI( )
    {
        float velocity = heli.GetVelocity( );

        label.text = ((int)(velocity * 3.6f)).ToString( ) + " km/h";             // m/s -> km/h
    }