C# 클래스 LMWidgets.LeapPhysicsBase

Base class for physics. Handles state changes between Interacting and Reflecting.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: leapmotion/ImageGrid

보호된 프로퍼티들

프로퍼티 타입 설명
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