C# Class LMWidgets.LeapPhysicsBase

Base class for physics. Handles state changes between Interacting and Reflecting.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: leapmotion/ImageGrid

Protected Properties

Свойство Type Description
m_pivot Vector3
m_target UnityEngine.GameObject
m_targetPivot Vector3

Méthodes protégées

Méthode Description
ApplyConstraints ( ) : void
ApplyInteractions ( ) : void
ApplyPhysics ( ) : void
Awake ( ) : void
FixedUpdate ( ) : void
OnTriggerEnter ( Collider collider ) : void

Change the state of the physics to "Interacting" if no other hands were interacting and if the collider is a hand

OnTriggerExit ( Collider collider ) : void

Change the state of the physics to "Reflecting" if the object exiting is the hand

ResetPivots ( ) : void

Resets the pivots

onInteractionDisabled ( ) : void

Called when widget becomes non-interactable.

Implement this function to handle changes to the widget when interaction is disabled (ie. starting a disable animation)

onInteractionEnabled ( ) : void

Called when widget becomes interactable.

Implement this function to handle changes to the widget when interaction is enabled (ie. starting an enable animation)

Private Methods

Méthode Description
IsHand ( Collider collider ) : bool

Returns true or false by checking if "HandModel" exits in the parent of the collider

Method Details

ApplyConstraints() protected abstract méthode

protected abstract ApplyConstraints ( ) : void
Résultat void

ApplyInteractions() protected abstract méthode

protected abstract ApplyInteractions ( ) : void
Résultat void

ApplyPhysics() protected abstract méthode

protected abstract ApplyPhysics ( ) : void
Résultat void

Awake() protected méthode

protected Awake ( ) : void
Résultat void

FixedUpdate() protected méthode

protected FixedUpdate ( ) : void
Résultat void

OnTriggerEnter() protected méthode

Change the state of the physics to "Interacting" if no other hands were interacting and if the collider is a hand
protected OnTriggerEnter ( Collider collider ) : void
collider UnityEngine.Collider
Résultat void

OnTriggerExit() protected méthode

Change the state of the physics to "Reflecting" if the object exiting is the hand
protected OnTriggerExit ( Collider collider ) : void
collider UnityEngine.Collider
Résultat void

ResetPivots() protected méthode

Resets the pivots
protected ResetPivots ( ) : void
Résultat void

onInteractionDisabled() protected méthode

Called when widget becomes non-interactable.
Implement this function to handle changes to the widget when interaction is disabled (ie. starting a disable animation)
protected onInteractionDisabled ( ) : void
Résultat void

onInteractionEnabled() protected méthode

Called when widget becomes interactable.
Implement this function to handle changes to the widget when interaction is enabled (ie. starting an enable animation)
protected onInteractionEnabled ( ) : void
Résultat void

Property Details

m_pivot protected_oe property

protected Vector3 m_pivot
Résultat Vector3

m_target protected_oe property

protected GameObject,UnityEngine m_target
Résultat UnityEngine.GameObject

m_targetPivot protected_oe property

protected Vector3 m_targetPivot
Résultat Vector3