C# Класс 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
Наследование: LeapPhysicsBase
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
applyCriticalDamping bool
springCoefficient UnityEngine.Vector3

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

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

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

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

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

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

Translate the widget with the hand during interaction
protected ApplyInteractions ( ) : void
Результат void

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

Apply spring physics
protected ApplyPhysics ( ) : void
Результат void

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

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

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

applyCriticalDamping публичное свойство

public bool applyCriticalDamping
Результат bool

springCoefficient публичное свойство

Spring constant is separated to xyz-axis for more flexible configuration
public Vector3,UnityEngine springCoefficient
Результат UnityEngine.Vector3