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
Afficher le fichier Open project: leapmotion/ImageGrid

Méthodes publiques

Свойство Type Description
applyCriticalDamping bool
springCoefficient UnityEngine.Vector3

Méthodes protégées

Méthode 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 méthode

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
Résultat void

ApplyInteractions() protected méthode

Translate the widget with the hand during interaction
protected ApplyInteractions ( ) : void
Résultat void

ApplyPhysics() protected méthode

Apply spring physics
protected ApplyPhysics ( ) : void
Résultat void

Awake() protected méthode

protected Awake ( ) : void
Résultat void

Property Details

applyCriticalDamping public_oe property

public bool applyCriticalDamping
Résultat bool

springCoefficient public_oe property

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