C# Class LMWidgets.LeapPhysicsSpring

Base class for spring. Restrains the widget in its local z-axis. It will apply spring physics in ApplyPhysics and translate the button with hand in ApplyInteractions
Inheritance: LeapPhysicsBase
Exibir arquivo Open project: leapmotion/ImageGrid

Public Properties

Property Type Description
applyCriticalDamping bool
springCoefficient UnityEngine.Vector3

Protected Methods

Method Description
ApplyInteractionConstraints ( Vector3 interactionConstraints ) : void

Applies Interaction constraints. Takes in a Vector3. If an axis has value > 0.5 then it's allowed to move. Otherwise it won't be

ApplyInteractions ( ) : void

Translate the widget with the hand during interaction

ApplyPhysics ( ) : void

Apply spring physics

Awake ( ) : void

Method Details

ApplyInteractionConstraints() protected method

Applies Interaction constraints. Takes in a Vector3. If an axis has value > 0.5 then it's allowed to move. Otherwise it won't be
protected ApplyInteractionConstraints ( Vector3 interactionConstraints ) : void
interactionConstraints UnityEngine.Vector3
return void

ApplyInteractions() protected method

Translate the widget with the hand during interaction
protected ApplyInteractions ( ) : void
return void

ApplyPhysics() protected method

Apply spring physics
protected ApplyPhysics ( ) : void
return void

Awake() protected method

protected Awake ( ) : void
return void

Property Details

applyCriticalDamping public_oe property

public bool applyCriticalDamping
return bool

springCoefficient public_oe property

Spring constant is separated to xyz-axis for more flexible configuration
public Vector3,UnityEngine springCoefficient
return UnityEngine.Vector3