Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit9a85df95a3

README.md

xrHead

Inject the head pose of an XR session, where the headset runtime's located head enters the engine. Both eyes move rigidly with it, so the picture, xr.pose("head"), the facing the Camera component reports and the look ray follow it as they follow a head that moved, for as long as the session draws frames. The pose is in the tracking space: position in metres, then the orientation quaternion.

tools.use("inputSim", "xrHead", { 0, 1.7, 0, 0, 0.7071, 0, 0.7071 })  -- the head turned a quarter turn left
tools.use("inputSim", "xrHead")                                       -- hand the head back