C# Класс LMWidgets.LeapPhysicsBase

Base class for physics. Handles state changes between Interacting and Reflecting.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_pivot Vector3
m_target UnityEngine.GameObject
m_targetPivot Vector3

Защищенные методы

Метод Описание
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)

Приватные методы

Метод Описание
IsHand ( Collider collider ) : bool

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

Описание методов

ApplyConstraints() защищенный абстрактный Метод

protected abstract ApplyConstraints ( ) : void
Результат void

ApplyInteractions() защищенный абстрактный Метод

protected abstract ApplyInteractions ( ) : void
Результат void

ApplyPhysics() защищенный абстрактный Метод

protected abstract ApplyPhysics ( ) : void
Результат void

Awake() защищенный Метод

protected Awake ( ) : void
Результат void

FixedUpdate() защищенный Метод

protected FixedUpdate ( ) : void
Результат void

OnTriggerEnter() защищенный Метод

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
Результат void

OnTriggerExit() защищенный Метод

Change the state of the physics to "Reflecting" if the object exiting is the hand
protected OnTriggerExit ( Collider collider ) : void
collider UnityEngine.Collider
Результат void

ResetPivots() защищенный Метод

Resets the pivots
protected ResetPivots ( ) : void
Результат void

onInteractionDisabled() защищенный Метод

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
Результат void

onInteractionEnabled() защищенный Метод

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
Результат void

Описание свойств

m_pivot защищенное свойство

protected Vector3 m_pivot
Результат Vector3

m_target защищенное свойство

protected GameObject,UnityEngine m_target
Результат UnityEngine.GameObject

m_targetPivot защищенное свойство

protected Vector3 m_targetPivot
Результат Vector3