You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(Interaction): allow different rotation actions for rotate grab
The Rotate Transform Grab Mechanic now has a new rotation action option
which allows the object to be rotated based on not only the angle in
difference between the origin of the object and the controller current
grab position but can also be based on the rotation of the controller
through one of it's axes (roll, pitch, yaw).
This can help with simulating other mechanics such as turning a screw
by swiveling the controller in the hand instead of grabbing and pulling
the object in the direction to move it.
Copy file name to clipboardexpand all lines: Assets/VRTK/Documentation/API.md
+6
Original file line number
Diff line number
Diff line change
@@ -5945,6 +5945,7 @@ Rotates the Transform of the Interactable Object around a specified transform lo
5945
5945
* **Detach Distance:** The maximum distance the grabbing object is away from the Interactable Object before it is automatically dropped.
5946
5946
* **Origin Deadzone:** The distance between grabbing object and the centre of Interactable Object that is considered to be non grabbable. If the grabbing object is within the `Origin Deadzone` distance then it will be automatically ungrabbed.
5947
5947
* **Rotate Around:** The local axis in which to rotate the object around.
5948
+
* **Rotation Action:** Determines how the rotation of the object is calculated based on the action of the grabbing object.
5948
5949
* **Rotation Friction:** The amount of friction to apply when rotating, simulates a tougher rotation.
5949
5950
* **Release Deceleration Damper:** The damper in which to slow the Interactable Object's rotation down when released to simulate continued momentum. The higher the number, the faster the Interactable Object will come to a complete stop on release.
5950
5951
* **Reset To Orign On Release Speed:** The speed in which the Interactable Object returns to it's origin rotation when released. If the `Reset To Orign On Release Speed` is `0f` then the rotation will not be reset.
@@ -5958,6 +5959,11 @@ Rotates the Transform of the Interactable Object around a specified transform lo
5958
5959
* `xAxis` - The local X Axis of the transform.
5959
5960
* `yAxis` - The local Y Axis of the transform.
5960
5961
* `zAxis` - The local Z Axis of the transform.
5962
+
* `public enum RotationType` - The way in which rotation from the grabbing object is applied.
5963
+
* `FollowAttachPoint` - The angle between the Interactable Object origin and the grabbing object attach point.
5964
+
* `FollowLongitudinalAxis` - The angular velocity across the grabbing object's longitudinal axis (the roll axis).
5965
+
* `FollowLateralAxis` - The angular velocity across the grabbing object's lateral axis (the pitch axis).
5966
+
* `FollowPerpendicularAxis` - The angular velocity across the grabbing object's perpendicular axis (the yaw axis).
5961
5967
* `public Quaternion originRotation` - The default local rotation of the Interactable Object.
0 commit comments