useApplyXRSpaceMatrix
useApplyXRSpaceMatrix(
ref
,space
,onFrame?
):void
Hook that applies the transformation of the provided xr space to the provided object reference
Parameters
ref current?null
| Group
<Object3DEventMap
>
A react ref object that points to the object that the XRSpaceMatrix should be applied to
spaceundefined
| XRSpace
(state
, delta
, frame
) => void
Optional callback that gets executed after the matrix of the reference object was updated
Returns
void
Requires
matrixAutoUpdate to be disabled for the referenced object