AxisScaleGizmo

Single axis scale 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

gizmoLayer

The utility layer the gizmo will be added to

onSnapObservable

onSnapObservable: Observable<object>

Event that fires each time the gizmo snaps to a new location.

  • snapDistance is the the change in distance

snapDistance

snapDistance: number

Scale distance in babylon units that the gizmo will snap to when dragged (Default: 0)

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

Generated using TypeDoc