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:50

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


minDistance?​

optional minDistance: number

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

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:46

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


raySmoothing?​

optional raySmoothing: boolean

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

Smooths the pointer ray that drives a ray move. Small hand movements as the pinch starts do not move the owner, then the ray blends in and eases toward the pointer, catching up faster when the hand reverses direction. Defaults to false.


scaleWithDistance?​

optional scaleWithDistance: boolean

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

Scales the owner with its distance from the camera while translating, so owners look larger when pulled closer and smaller when pushed away. A ray grab point keeps its place on the owner as it scales. Clamped by the Scale action limits.


smoothing?​

optional smoothing: number

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

Camera-facing rotation smoothing, matching FaceCamera.