예제 #1
0
    private void SpeedAdjustment()
    {
        //Car cam speed settings
        float currentSpeedPercentage = carCamSpeedCurve.Evaluate(_cpMain.speedData.ForwardSpeedPercent);

        currentVCam.m_Lens.FieldOfView = fov.GetCurrentWithPercent(currentSpeedPercentage);

        zPos.GetCurrentWithPercent(currentSpeedPercentage);
        currentTransposer.m_FollowOffset = new Vector3(0, 5, zPos.current);
        currentTransposer.m_YDamping     = yDamp.GetCurrentWithPercent(currentSpeedPercentage);
        currentTransposer.m_ZDamping     = zDamp.GetCurrentWithPercent(currentSpeedPercentage);
    }