BoundingBoxGizmo

Bounding box gizmo

Hierarchy

Implements

Index

Constructors

constructor

Properties

attachedMesh

attachedMesh: Nullable<AbstractMesh>

Mesh that the gizmo will be attached to. (eg. on a drag gizmo the mesh that will be dragged)

  • When set, interactions will be enabled

fixedDragMeshScreenSize

fixedDragMeshScreenSize: boolean

If set, the rotation spheres and scale boxes will increase in size based on the distance away from the camera to have a consistent screen size (Default: false)

fixedDragMeshScreenSizeDistanceFactor

fixedDragMeshScreenSizeDistanceFactor: number

The distance away from the object which the draggable meshes should appear world sized when fixedDragMeshScreenSize is set to true (default: 10)

gizmoLayer

The utility layer the gizmo will be added to

onDragEndObservable

onDragEndObservable: Observable<__type>

Fired when a rotation sphere or scale box drag is needed

onDragObservable

onDragObservable: Observable<__type>

Fired when a rotation sphere or scale box drag is started

onDragStartObservable

onDragStartObservable: Observable<__type>

Fired when a rotation sphere or scale box is dragged

rotationSphereSize

rotationSphereSize: number

The size of the rotation spheres attached to the bounding box (Default: 0.1)

scaleBoxSize

scaleBoxSize: number

The size of the scale boxes attached to the bounding box (Default: 0.1)

updateGizmoPositionToMatchAttachedMesh

updateGizmoPositionToMatchAttachedMesh: boolean

If set the gizmo's position will be updated to match the attached mesh each frame (Default: true)

updateGizmoRotationToMatchAttachedMesh

updateGizmoRotationToMatchAttachedMesh: boolean

If set the gizmo's rotation will be updated to match the attached mesh each frame (Default: true)

Methods

dispose

  • dispose(): void

setEnabledRotationAxis

  • setEnabledRotationAxis(axis: string): void
  • Enables rotation on the specified axis and disables rotation on the others

    Parameters

    • axis: string

      The list of axis that should be enabled (eg. "xy" or "xyz")

    Returns void

Generated using TypeDoc