Class TwoHandMoveLogic
Implements a movement logic that uses the model of angular rotations along a sphere whose radius varies. The angle to move by is computed by looking at how much the hand changes relative to a pivot point (slightly below and in front of the head).
Usage: When a manipulation starts, call Setup. Call Update any time to update the move logic and get a new rotation for the object.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Physics
Assembly: cs.temp.dll.dll
Syntax
public class TwoHandMoveLogic
Methods
Setup(MixedRealityPose, Vector3, MixedRealityPose, Vector3)
Setup function
Declaration
public void Setup(MixedRealityPose pointerCentroidPose, Vector3 grabCentroid, MixedRealityPose objectPose, Vector3 objectScale)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPose | pointerCentroidPose | |
Vector3 | grabCentroid | |
MixedRealityPose | objectPose | |
Vector3 | objectScale |
Update(MixedRealityPose, Quaternion, Vector3, Boolean, MovementConstraintType)
Update the rotation based on input.
Declaration
public Vector3 Update(MixedRealityPose pointerCentroidPose, Quaternion objectRotation, Vector3 objectScale, bool usePointerRotation, MovementConstraintType movementConstraint)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPose | pointerCentroidPose | |
Quaternion | objectRotation | |
Vector3 | objectScale | |
Boolean | usePointerRotation | |
MovementConstraintType | movementConstraint |
Returns
Type | Description |
---|---|
Vector3 | A Vector3 describing the desired position |