Corgi Engine  v9.2
MoreMountains.Tools.MMGyroscope Class Reference
Inheritance diagram for MoreMountains.Tools.MMGyroscope:
MoreMountains.Tools.MMGyroParallax

Public Types

enum  TimeScales { TimeScales.Scaled, TimeScales.Unscaled }
 

Static Public Member Functions

static void GyroscopeInitialization ()
 
static void GetValues ()
 

Public Attributes

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
 

Static Public Attributes

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

virtual void Start ()
 
virtual void Update ()
 
virtual void HandleTestMode ()
 

Static Protected Member Functions

static Quaternion GyroscopeToUnity (Quaternion q)
 

Static Protected Attributes

static Vector3 _testVector = Vector3.zero
 

Properties

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]
 

Member Enumeration Documentation

◆ TimeScales

Enumerator
Scaled 
Unscaled 

Member Function Documentation

◆ GetValues()

static void MoreMountains.Tools.MMGyroscope.GetValues ( )
static

◆ GyroscopeInitialization()

static void MoreMountains.Tools.MMGyroscope.GyroscopeInitialization ( )
static

◆ GyroscopeToUnity()

static Quaternion MoreMountains.Tools.MMGyroscope.GyroscopeToUnity ( Quaternion  q)
staticprotected

◆ HandleTestMode()

virtual void MoreMountains.Tools.MMGyroscope.HandleTestMode ( )
protectedvirtual

◆ Start()

virtual void MoreMountains.Tools.MMGyroscope.Start ( )
protectedvirtual

◆ Update()

virtual void MoreMountains.Tools.MMGyroscope.Update ( )
protectedvirtual

Member Data Documentation

◆ _TestMode

bool MoreMountains.Tools.MMGyroscope._TestMode = false

turn this on if you want to use the inspector to test this camera

◆ _testVector

Vector3 MoreMountains.Tools.MMGyroscope._testVector = Vector3.zero
staticprotected

◆ CalibrateButton

bool MoreMountains.Tools.MMGyroscope.CalibrateButton

◆ Clamps

Vector2 MoreMountains.Tools.MMGyroscope.Clamps = new Vector2(-1f, 1f)
static

◆ GyroscopeActive

bool MoreMountains.Tools.MMGyroscope.GyroscopeActive = true
static

◆ LerpSpeed

float MoreMountains.Tools.MMGyroscope.LerpSpeed = 1f
static

◆ TestMode

bool MoreMountains.Tools.MMGyroscope.TestMode
static

◆ TestXAcceleration

float MoreMountains.Tools.MMGyroscope.TestXAcceleration = 0f

the rotation to apply on the x axiswhen in test mode

◆ TestYAcceleration

float MoreMountains.Tools.MMGyroscope.TestYAcceleration = 0f

the rotation to apply on the y axis while in test mode

◆ TestZAcceleration

float MoreMountains.Tools.MMGyroscope.TestZAcceleration = 0f

the rotation to apply on the y axis while in test mode

◆ TimeScale

TimeScales MoreMountains.Tools.MMGyroscope.TimeScale = TimeScales.Scaled
static

Property Documentation

◆ CalibratedGyroscopeGravity

Vector3 MoreMountains.Tools.MMGyroscope.CalibratedGyroscopeGravity
staticget

◆ CalibratedInputAcceleration

Vector3 MoreMountains.Tools.MMGyroscope.CalibratedInputAcceleration
staticget

◆ GyroscopeAcceleration

Vector3 MoreMountains.Tools.MMGyroscope.GyroscopeAcceleration
staticget

◆ GyroscopeAttitude

Quaternion MoreMountains.Tools.MMGyroscope.GyroscopeAttitude
staticget

◆ GyroscopeGravity

Vector3 MoreMountains.Tools.MMGyroscope.GyroscopeGravity
staticget

◆ GyroscopeRotationRate

Vector3 MoreMountains.Tools.MMGyroscope.GyroscopeRotationRate
staticget

◆ InitialGyroscopeAcceleration

Vector3 MoreMountains.Tools.MMGyroscope.InitialGyroscopeAcceleration
staticget

◆ InitialGyroscopeAttitude

Quaternion MoreMountains.Tools.MMGyroscope.InitialGyroscopeAttitude
staticget

◆ InitialGyroscopeGravity

Vector3 MoreMountains.Tools.MMGyroscope.InitialGyroscopeGravity
staticget

◆ InitialGyroscopeRotationRate

Vector3 MoreMountains.Tools.MMGyroscope.InitialGyroscopeRotationRate
staticget

◆ InitialInputAcceleration

Vector3 MoreMountains.Tools.MMGyroscope.InitialInputAcceleration
staticget

◆ InputAcceleration

Vector3 MoreMountains.Tools.MMGyroscope.InputAcceleration
staticget

◆ LerpedCalibratedGyroscopeGravity

Vector3 MoreMountains.Tools.MMGyroscope.LerpedCalibratedGyroscopeGravity
staticget

◆ LerpedCalibratedInputAcceleration

Vector3 MoreMountains.Tools.MMGyroscope.LerpedCalibratedInputAcceleration
staticget

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