API reference
API reference
Select your platform
No SDKs available
No versions available

TwoGrabFreeTransformer Class

Extends MonoBehaviour
Implements ITransformer
A Transformer that transforms the target in a free form way for an intuitive two hand translation, rotation and scale.

Properties

Constraints : TwoGrabFreeConstraints
[Get][Set]
Signature
TwoGrabFreeConstraints Constraints

Methods

BeginTransform ()
Signature
void BeginTransform()
Returns
void
EndTransform ()
Signature
void EndTransform()
Returns
void
Initialize ( grabbable )
Signature
void Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
Returns
void
InjectOptionalConstraints ( constraints )
Signature
void InjectOptionalConstraints(TwoGrabFreeConstraints constraints)
Parameters
constraints: TwoGrabFreeConstraints
Returns
void
MarkAsBaseScale ()
Signature
void MarkAsBaseScale()
Returns
void
UpdateTransform ()
Signature
void UpdateTransform()
Returns
void

Static Methods

TwoGrabFree ( initialRotation , prevA , prevB , newA , newB )
Signature
static TwoGrabFreeState TwoGrabFree(Quaternion initialRotation, Pose prevA, Pose prevB, Pose newA, Pose newB)
Parameters
initialRotation: Quaternion
prevA: Pose
prevB: Pose
newA: Pose
newB: Pose
Returns
TwoGrabFreeState
TwoGrabFreeInit ( a , b )
Signature
static TwoGrabFreeState TwoGrabFreeInit(Vector3 a, Vector3 b)
Parameters
a: Vector3
b: Vector3
Returns
TwoGrabFreeState

Inner Class

TwoGrabFreeConstraints Class

Fields

ConstraintsAreRelative : bool
Signature
bool ConstraintsAreRelative
ConstrainXScale : bool
Signature
bool ConstrainXScale
ConstrainYScale : bool
Signature
bool ConstrainYScale
ConstrainZScale : bool
Signature
bool ConstrainZScale
MaxScale : FloatConstraint
Signature
FloatConstraint MaxScale
MinScale : FloatConstraint
Signature
FloatConstraint MinScale

Inner Struct

TwoGrabFreeState Struct

Fields

Center : Pose
Signature
Pose Center
Distance : float
Signature
float Distance