FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Core.Controller Class Reference

FMAR Controller representation Handles position, rotation, pointers, and button presses. More...

Inheritance diagram for FMAR.Core.Controller:
FMAR.Core.Tracker FMAR.Core.CommonHandController

Public Member Functions

void SendHapticImpulse (uint channel, float amplitude, float duration)
 
 Controller ()
 
 Controller (string name, bool isRight, Func< Vector3 > positionFunc, Func< Quaternion > rotationFunc, Func< Vector3 > pointerPositionFunc, Func< Quaternion > pointerRotationFunc, Func< bool > pressedFunc, Func< bool > justPressedFunc, Func< Vector2 > joystickFunc, Func< bool > primaryButtonPressedFunc, Func< bool > secondaryButtonPressedFunc, Action< uint, float, float > sendHapticImpluseAction, GameObject debugObject=null)
 
void Draw ()
 

Public Attributes

bool isRight
 

Protected Attributes

Func< Vector3 > positionFunc
 
Func< Quaternion > rotationFunc
 
Func< Vector3 > pointerPositionFunc
 
Func< Quaternion > pointerRotationFunc
 
Func< Vector3 > altPointerPositionFunc
 
Func< Quaternion > altPointerRotationFunc
 
Func< bool > pressedFunc
 
Func< bool > justPressedFunc
 
Func< Vector2 > joystickFunc
 
Func< bool > primaryButtonPressedFunc
 
Func< bool > secondaryButtonPressedFunc
 
Action< uint, float, float > sendHapticImpluseAction
 
GameObject debugObject
 

Properties

string Name [get, protected set]
 
Vector3 Position [get]
 
Quaternion Rotation [get]
 
Vector3 PointerPosition [get]
 
Quaternion PointerRotation [get]
 
Vector3 AltPointerPosition [get]
 
Quaternion AltPointerRotation [get]
 
bool Pressed [get]
 
bool JustPressed [get]
 
bool PrimaryButtonPressed [get]
 
bool SecondaryButtonPressed [get]
 
Vector2 Joystick [get]
 
- Properties inherited from FMAR.Core.Tracker

Detailed Description

FMAR Controller representation Handles position, rotation, pointers, and button presses.

Constructor & Destructor Documentation

◆ Controller() [1/2]

FMAR.Core.Controller.Controller ( )
inline

◆ Controller() [2/2]

FMAR.Core.Controller.Controller ( string name,
bool isRight,
Func< Vector3 > positionFunc,
Func< Quaternion > rotationFunc,
Func< Vector3 > pointerPositionFunc,
Func< Quaternion > pointerRotationFunc,
Func< bool > pressedFunc,
Func< bool > justPressedFunc,
Func< Vector2 > joystickFunc,
Func< bool > primaryButtonPressedFunc,
Func< bool > secondaryButtonPressedFunc,
Action< uint, float, float > sendHapticImpluseAction,
GameObject debugObject = null )
inline

Member Function Documentation

◆ Draw()

void FMAR.Core.Controller.Draw ( )
inline

◆ SendHapticImpulse()

void FMAR.Core.Controller.SendHapticImpulse ( uint channel,
float amplitude,
float duration )
inline

Member Data Documentation

◆ altPointerPositionFunc

Func<Vector3> FMAR.Core.Controller.altPointerPositionFunc
protected

◆ altPointerRotationFunc

Func<Quaternion> FMAR.Core.Controller.altPointerRotationFunc
protected

◆ debugObject

GameObject FMAR.Core.Controller.debugObject
protected

◆ isRight

bool FMAR.Core.Controller.isRight

◆ joystickFunc

Func<Vector2> FMAR.Core.Controller.joystickFunc
protected

◆ justPressedFunc

Func<bool> FMAR.Core.Controller.justPressedFunc
protected

◆ pointerPositionFunc

Func<Vector3> FMAR.Core.Controller.pointerPositionFunc
protected

◆ pointerRotationFunc

Func<Quaternion> FMAR.Core.Controller.pointerRotationFunc
protected

◆ positionFunc

Func<Vector3> FMAR.Core.Controller.positionFunc
protected

◆ pressedFunc

Func<bool> FMAR.Core.Controller.pressedFunc
protected

◆ primaryButtonPressedFunc

Func<bool> FMAR.Core.Controller.primaryButtonPressedFunc
protected

◆ rotationFunc

Func<Quaternion> FMAR.Core.Controller.rotationFunc
protected

◆ secondaryButtonPressedFunc

Func<bool> FMAR.Core.Controller.secondaryButtonPressedFunc
protected

◆ sendHapticImpluseAction

Action<uint, float, float> FMAR.Core.Controller.sendHapticImpluseAction
protected

Property Documentation

◆ AltPointerPosition

Vector3 FMAR.Core.Controller.AltPointerPosition
get

◆ AltPointerRotation

Quaternion FMAR.Core.Controller.AltPointerRotation
get

◆ Joystick

Vector2 FMAR.Core.Controller.Joystick
get

◆ JustPressed

bool FMAR.Core.Controller.JustPressed
get

◆ Name

string FMAR.Core.Controller.Name
getprotected set

◆ PointerPosition

Vector3 FMAR.Core.Controller.PointerPosition
get

◆ PointerRotation

Quaternion FMAR.Core.Controller.PointerRotation
get

◆ Position

Vector3 FMAR.Core.Controller.Position
get

Implements FMAR.Core.Tracker.

◆ Pressed

bool FMAR.Core.Controller.Pressed
get

◆ PrimaryButtonPressed

bool FMAR.Core.Controller.PrimaryButtonPressed
get

◆ Rotation

Quaternion FMAR.Core.Controller.Rotation
get

Implements FMAR.Core.Tracker.

◆ SecondaryButtonPressed

bool FMAR.Core.Controller.SecondaryButtonPressed
get

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