Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.Tools.MMGyroParallax Class Reference

Add this class to a camera rig (an empty object), bind some Cinemachine virtual cameras to it, and they'll move around the specified object as your gyro powered device moves More...

Inheritance diagram for MoreMountains.Tools.MMGyroParallax:
MoreMountains.Tools.MMGyroscope

Public Member Functions

virtual void Initialization ()
 Grabs the cameras and stores their position More...
 

Public Attributes

List< MMGyroCamCams
 the list of cameras to move as the gyro moves More...
 
- Public Attributes inherited from MoreMountains.Tools.MMGyroscope
bool _TestMode = false
 turn this on if you want to use the inspector to test this camera More...
 
float TestXAcceleration = 0f
 the rotation to apply on the x axiswhen in test mode More...
 
float TestYAcceleration = 0f
 the rotation to apply on the y axis while in test mode More...
 
float TestZAcceleration = 0f
 the rotation to apply on the y axis while in test mode More...
 
bool CalibrateButton
 

Protected Member Functions

override void Start ()
 On start we initialize our rig More...
 
override void Update ()
 On Update we move our cameras More...
 
virtual void MoveCameras ()
 Moves cameras around based on gyro input More...
 
- Protected Member Functions inherited from MoreMountains.Tools.MMGyroscope
virtual void HandleTestMode ()
 

Protected Attributes

Vector3 _newAngles
 

Additional Inherited Members

- Public Types inherited from MoreMountains.Tools.MMGyroscope
enum  TimeScales { Scaled , Unscaled }
 
- Static Public Member Functions inherited from MoreMountains.Tools.MMGyroscope
static void GyroscopeInitialization ()
 
static void GetValues ()
 
- Static Public Attributes inherited from MoreMountains.Tools.MMGyroscope
static bool GyroscopeActive = true
 
static TimeScales TimeScale = TimeScales.Scaled
 
static Vector2 Clamps = new Vector2(-1f, 1f)
 
static float LerpSpeed = 1f
 
static bool TestMode
 
- Static Protected Member Functions inherited from MoreMountains.Tools.MMGyroscope
static Quaternion GyroscopeToUnity (Quaternion q)
 
- Static Protected Attributes inherited from MoreMountains.Tools.MMGyroscope
static Vector3 _testVector = Vector3.zero
 
- Properties inherited from MoreMountains.Tools.MMGyroscope
static Quaternion GyroscopeAttitude [get]
 
static Vector3 GyroscopeRotationRate [get]
 
static Vector3 GyroscopeAcceleration [get]
 
static Vector3 InputAcceleration [get]
 
static Vector3 GyroscopeGravity [get]
 
static Quaternion InitialGyroscopeAttitude [get]
 
static Vector3 InitialGyroscopeRotationRate [get]
 
static Vector3 InitialGyroscopeAcceleration [get]
 
static Vector3 InitialInputAcceleration [get]
 
static Vector3 InitialGyroscopeGravity [get]
 
static Vector3 CalibratedInputAcceleration [get]
 
static Vector3 CalibratedGyroscopeGravity [get]
 
static Vector3 LerpedCalibratedInputAcceleration [get]
 
static Vector3 LerpedCalibratedGyroscopeGravity [get]
 

Detailed Description

Add this class to a camera rig (an empty object), bind some Cinemachine virtual cameras to it, and they'll move around the specified object as your gyro powered device moves

Member Function Documentation

◆ Initialization()

virtual void MoreMountains.Tools.MMGyroParallax.Initialization ( )
virtual

Grabs the cameras and stores their position

◆ MoveCameras()

virtual void MoreMountains.Tools.MMGyroParallax.MoveCameras ( )
protectedvirtual

Moves cameras around based on gyro input

◆ Start()

override void MoreMountains.Tools.MMGyroParallax.Start ( )
protectedvirtual

On start we initialize our rig

Reimplemented from MoreMountains.Tools.MMGyroscope.

◆ Update()

override void MoreMountains.Tools.MMGyroParallax.Update ( )
protectedvirtual

On Update we move our cameras

Reimplemented from MoreMountains.Tools.MMGyroscope.

Member Data Documentation

◆ _newAngles

Vector3 MoreMountains.Tools.MMGyroParallax._newAngles
protected

◆ Cams

List<MMGyroCam> MoreMountains.Tools.MMGyroParallax.Cams

the list of cameras to move as the gyro moves


The documentation for this class was generated from the following file: