public override void execute(AnomalousMvcContext context)
        {
            float blend;

            float.TryParse(context.getActionArgument("value"), out blend);
            var blendedPosition = new CameraPosition(CameraStartPosition);

            blendedPosition.LookAt       = CameraStartPosition.LookAt.lerp(CameraEndPosition.LookAt, blend);
            blendedPosition.Translation  = CameraStartPosition.Translation.lerp(CameraEndPosition.Translation, blend);
            blendedPosition.IncludePoint = CameraStartPosition.IncludePoint.lerp(CameraEndPosition.IncludePoint, blend);
            context.applyCameraPosition(blendedPosition, 0.0f);
        }
Esempio n. 2
0
 public override void execute(AnomalousMvcContext context)
 {
     context.applyCameraPosition(CameraPosition);
 }