Skip to content

Add VR controller input as game.input.xr - #88

Merged
mattvb91 merged 1 commit into
feature/webxr-camera-rigfrom
feature/webxr-controllers
Nov 25, 2026
Merged

mattvb91 merged 1 commit into
feature/webxr-camera-rigfrom
feature/webxr-controllers

Conversation

@mattvb91

Copy link
Copy Markdown
Member

XRInput reads both controllers by hand (left/right, whichever slot the session puts them in) with the same isPressed / justPressed / value API as GamepadManager, xr-standard button names, a deadzoned thumbstick, raycasting along the controller's ray and haptics. The controllers live in the camera rig so they move with the player, with their 3D models and a pointer line unless turned off. The session's select and squeeze events are passed on with the hand.

camera.turn(angle) turns the view around the player's head, for snap turns.

@mattvb91
mattvb91 added this pull request to stack #87 November 25, 2026 15:20
XRInput reads both controllers by hand (left/right, whichever slot the
session puts them in) with the same isPressed / justPressed / value API
as GamepadManager, xr-standard button names, a deadzoned thumbstick,
raycasting along the controller's ray and haptics. The controllers live
in the camera rig so they move with the player, with their 3D models and
a pointer line unless turned off. The session's select and squeeze
events are passed on with the hand.

camera.turn(angle) turns the view around the player's head, for snap
turns.
@mattvb91
mattvb91 force-pushed the feature/webxr-controllers branch from d3c7dff to 96a41ad Compare November 25, 2026 15:21
@mattvb91
mattvb91 merged commit 5ba072c into dev Nov 25, 2026
25 checks passed
@mattvb91
mattvb91 deleted the feature/webxr-controllers branch November 25, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant