class MAGES::Interaction::SnapTurnProvider¶
Overview¶
A locomotion provider, for providing rotation to the camera using the joystick. More…
class SnapTurnProvider: public MAGES::Interaction::BaseLocomotionProvider { public: // properties float SnapRotationAngle; // methods void RotateRigAroundCamera(Vector3 axis, float angle); void RotateRig(Vector3 eulers); };
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 SnapRotationAngle
Gets or sets the snap rotation angle. Only used when SnapRotation is true
.
Methods¶
void RotateRigAroundCamera(Vector3 axis, float angle)
Rotates the rig around the camera.
Parameters:
axis |
The rotation axis. |
angle |
The angle in degrees. |
void RotateRig(Vector3 eulers)
Rotates the Rig.
Parameters:
eulers |
The rotation angles of each axis. |