class MAGES::Interaction::SmoothTurnProvider

Overview

A locomotion provider, for providing rotation to the camera using the joystick. More…

class SmoothTurnProvider: public MAGES::Interaction::BaseLocomotionProvider
{
public:
    // properties

    float Speed;

    // methods

    void RotateRig(Vector2 input);
};

Inherited Members

public:
    // properties

    ILocomotionSystem LocomotionSystem;
    LocomotionPhase LocomotionPhase;
    UnityEvent<LocomotionStartEventArgs> LocomotionStarted;
    UnityEvent<LocomotionEndEventArgs> LocomotionEnded;
    ILocomotionSystem LocomotionSystem;
    LocomotionPhase LocomotionPhase;
    UnityEvent<LocomotionStartEventArgs> LocomotionStarted;
    UnityEvent<LocomotionEndEventArgs> LocomotionEnded;

    // methods

    bool CanStartLocomotion();
    bool StartLocomotion(float time);
    bool EndLocomotion();
    bool CanStartLocomotion();
    bool StartLocomotion(float time = 10f);
    bool EndLocomotion();

Detailed Documentation

A locomotion provider, for providing rotation to the camera using the joystick.

Properties

float Speed

Gets or sets the speed of the rotation.

Methods

void RotateRig(Vector2 input)

Rotates the Camera.

Parameters:

input

The rotation values of each axis.