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
| position | vec3 | Local offset position where the object should be held (relative to controller). |`0 0 0`| Any position coordinates (in meters) |
34
+
| rotation | vec3 | Local offset rotation applied when held (relative to controller). |`0 0 0`| Any rotation angles (in degrees) |
35
+
| debug | bool | Outputs the relative position and rotation of held objects. Useful for setting custom offsets. |`false`|`true`, `false`|
35
36
36
37
**Notes**:
37
38
38
39
- Left-hand interactions are mirrored - position and rotation offsets are automatically flipped when grabbing with the left hand.
39
40
- Using "0 0 0" for position or rotation will indicate no custom position or rotation. For rotation, this means the rotation will be the same as the object's original rotation when grabbed.
40
-
- If using a custom rotation and position, just know that rotation pivots around the controller, not the model's center. It's easiest to set the custom rotation before position.
41
+
- Rotation pivots around the controller, not the object. Set rotation before position for easier adjustments.
42
+
- For easiest setup, enable `debug: true` and grab the object naturally. Then copy values from console (via [dev tools](https://developer.chrome.com/docs/devtools/remote-debugging) or [vr-logger](../../src/components/vr-logger/vr-logger.js) component).
0 commit comments