Exemplo n.º 1
0
        // Predefining this to get around having to convert them.
        public ShoulderActionCamera(ActionCameraConfig settings) :
            base(settings, 0)
        {
            Vector3 neutralOffset = offset;

            neutralOffset.x = 0;
            neutralOffset.y = -settings.cameraBodyVerticalTargetOffset;
            neutralOffset.z = -settings.cameraShoulderDistance;
            betweenCamera   = new SimpleActionCamera(settings, settings.cameraShoulderPositioningTime / 2, neutralOffset);

            SetPluginSettings(settings);
        }
Exemplo n.º 2
0
        public FullBodyActionCamera(ActionCameraConfig settings) :
            base(settings, 0, Vector3.zero, false, false)
        {
            SetBetweenTime(settings.cameraBodyPositioningTime / (settings.inBetweenCameraEnabled ? 2 : 1));
            Vector3 neutralOffset = offset;

            neutralOffset.x  = 0;
            neutralOffset.y += 0.5f;
            neutralOffset.z  = settings.cameraBodyDistance;
            betweenCamera    = new SimpleActionCamera(settings, GetBetweenTime(), neutralOffset);

            CalculateOffset();
        }