Skip to main content

Interface: ThreeWorldSensingPortOptions

Defined in: threejs-environment/src/world-sensing-port.ts:51

Properties

PropertyModifierTypeDescriptionDefined in
ray?readonly(origin: { w: number; x: number; y: number; z: number; }, direction: { w: number; x: number; y: number; z: number; }) => unknownBuilds the XRRay an offset ray needs. Injectable for the same reason as rigidTransform: XRRay is a browser global with no headless stand-in. Without it an offset ray is reported as ignored rather than quietly dropped, because a request that aims somewhere and is answered from somewhere else is worse than one that is refused.threejs-environment/src/world-sensing-port.ts:60
rigidTransform?readonly(position: { x: number; y: number; z: number; }, orientation: { w: number; x: number; y: number; z: number; }) => unknownBuilds the transform frame.createAnchor wants. Defaults to the browser's XRRigidTransform. It is injectable because that constructor is a global with no headless stand-in, and an anchor path that could only be exercised on a device is a path that ships untested.threejs-environment/src/world-sensing-port.ts:71