C# Class GrabbingHand

Inheritance: MonoBehaviour
Mostrar archivo Open project: leapmotion/ImageGrid Class Usage Examples

Public Properties

Property Type Description
grabObjectDistance float
grabTriggerDistance float
grabbableLayers LayerMask
maxMovement Vector3
minConfidence float
minMovement Vector3
positionFiltering float
releaseBreakDistance float
releaseStrengthCurve UnityEngine.AnimationCurve
releaseTriggerDistance float
rotationFiltering float

Protected Properties

Property Type Description
active_object_ Collider
current_pinch_position_ Vector3
filtered_pinch_position_ Vector3
last_max_angular_velocity_ float
object_pinch_offset_ Vector3
palm_rotation_ Quaternion
pinch_state_ PinchState
rotation_from_palm_ Quaternion

Public Methods

Method Description
FixedUpdate ( ) : void
OnDestroy ( ) : void
Start ( ) : void

Protected Methods

Method Description
ContinueHardPinch ( ) : void
ContinueSoftPinch ( ) : void
FindClosestGrabbableObject ( Vector3 pinch_position ) : Collider
GetNewPinchState ( ) : PinchState
Hover ( ) : void
ObjectReleaseBreak ( Vector3 pinch_position ) : bool
OnRelease ( ) : void
StartPinch ( ) : void
UpdatePalmRotation ( ) : void
UpdatePinchPosition ( ) : void

Method Details

ContinueHardPinch() protected method

protected ContinueHardPinch ( ) : void
return void

ContinueSoftPinch() protected method

protected ContinueSoftPinch ( ) : void
return void

FindClosestGrabbableObject() protected method

protected FindClosestGrabbableObject ( Vector3 pinch_position ) : Collider
pinch_position Vector3
return Collider

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

GetNewPinchState() protected method

protected GetNewPinchState ( ) : PinchState
return PinchState

Hover() protected method

protected Hover ( ) : void
return void

ObjectReleaseBreak() protected method

protected ObjectReleaseBreak ( Vector3 pinch_position ) : bool
pinch_position Vector3
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnRelease() protected method

protected OnRelease ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StartPinch() protected method

protected StartPinch ( ) : void
return void

UpdatePalmRotation() protected method

protected UpdatePalmRotation ( ) : void
return void

UpdatePinchPosition() protected method

protected UpdatePinchPosition ( ) : void
return void

Property Details

active_object_ protected_oe property

protected Collider active_object_
return Collider

current_pinch_position_ protected_oe property

protected Vector3 current_pinch_position_
return Vector3

filtered_pinch_position_ protected_oe property

protected Vector3 filtered_pinch_position_
return Vector3

grabObjectDistance public_oe property

public float grabObjectDistance
return float

grabTriggerDistance public_oe property

public float grabTriggerDistance
return float

grabbableLayers public_oe property

public LayerMask grabbableLayers
return LayerMask

last_max_angular_velocity_ protected_oe property

protected float last_max_angular_velocity_
return float

maxMovement public_oe property

public Vector3 maxMovement
return Vector3

minConfidence public_oe property

public float minConfidence
return float

minMovement public_oe property

public Vector3 minMovement
return Vector3

object_pinch_offset_ protected_oe property

protected Vector3 object_pinch_offset_
return Vector3

palm_rotation_ protected_oe property

protected Quaternion palm_rotation_
return Quaternion

pinch_state_ protected_oe property

protected PinchState pinch_state_
return PinchState

positionFiltering public_oe property

public float positionFiltering
return float

releaseBreakDistance public_oe property

public float releaseBreakDistance
return float

releaseStrengthCurve public_oe property

public AnimationCurve,UnityEngine releaseStrengthCurve
return UnityEngine.AnimationCurve

releaseTriggerDistance public_oe property

public float releaseTriggerDistance
return float

rotationFiltering public_oe property

public float rotationFiltering
return float

rotation_from_palm_ protected_oe property

protected Quaternion rotation_from_palm_
return Quaternion