Corgi Engine  v9.2
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 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 Attributes

Vector3 _newAngles
 

Additional Inherited Members

- Public Types inherited from MoreMountains.Tools.MMGyroscope
enum  TimeScales { TimeScales.Scaled, TimeScales.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
 
- Protected Member Functions inherited from MoreMountains.Tools.MMGyroscope
virtual void Start ()
 
virtual void Update ()
 
virtual void HandleTestMode ()
 
- 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 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: