Skip to main content

Interface: TranslateOptions

Defined in: src/interaction/manipulation/ManipulationTypes.ts:20

Properties​

capsuleHalfHeight?​

optional capsuleHalfHeight: number

Defined in: src/interaction/manipulation/ManipulationTypes.ts:25

Half-height of the upright region used by capsule mode, in meters.


faceCamera?​

optional faceCamera: boolean

Defined in: src/interaction/manipulation/ManipulationTypes.ts:21


maxDistance?​

optional maxDistance: number

Defined in: src/interaction/manipulation/ManipulationTypes.ts:43

Farthest the owner can be moved from the viewer, in meters.


minDistance?​

optional minDistance: number

Defined in: src/interaction/manipulation/ManipulationTypes.ts:41

Closest the owner can be moved to the viewer, in meters.


mode?​

optional mode: FaceCameraMode

Defined in: src/interaction/manipulation/ManipulationTypes.ts:23

Camera-facing rotation mode used while translating.


pushPull?​

optional pushPull: boolean | PushPullOptions

Defined in: src/interaction/manipulation/ManipulationTypes.ts:39

Pushes the owner away or pulls it closer along a controller ray with the thumbstick while translating: forward pushes, back pulls.


scaleWithDistance?​

optional scaleWithDistance: boolean

Defined in: src/interaction/manipulation/ManipulationTypes.ts:34

Scales the owner with its distance from the camera while translating, matching Android XR panels: apparent size stays constant up to 1.75 meters, then scale grows at 0.5 meters per meter so farther owners look smaller. Clamped by the Scale action limits.


smoothing?​

optional smoothing: number

Defined in: src/interaction/manipulation/ManipulationTypes.ts:27

Camera-facing rotation smoothing, matching FaceCamera.