ScaleGizmo

Gizmo that enables scaling a mesh along 3 axis

Hierarchy

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

attachedMesh

Find examples in Playground
attachedMesh: Nullable<AbstractMesh>

gizmoLayer

Find examples in Playground

The utility layer the gizmo will be added to

onDragEndObservable

Find examples in Playground
onDragEndObservable: Observable<__type>

Fires an event when any of it's sub gizmos are released from dragging

onDragStartObservable

Find examples in Playground
onDragStartObservable: Observable<__type>

Fires an event when any of it's sub gizmos are dragged

scaleRatio

Find examples in Playground
scaleRatio: number

Ratio for the scale of the gizmo (Default: 1)

snapDistance

Find examples in Playground
snapDistance: number

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

uniformScaleGizmo

Find examples in Playground
uniformScaleGizmo: AxisScaleGizmo

Internal gizmo used to scale all axis equally

updateGizmoPositionToMatchAttachedMesh

Find examples in Playground
updateGizmoPositionToMatchAttachedMesh: boolean

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

updateGizmoRotationToMatchAttachedMesh

Find examples in Playground
updateGizmoRotationToMatchAttachedMesh: boolean

xGizmo

Find examples in Playground

Internal gizmo used for interactions on the x axis

yGizmo

Find examples in Playground

Internal gizmo used for interactions on the y axis

zGizmo

Find examples in Playground

Internal gizmo used for interactions on the z axis

Methods

dispose

Find examples in Playground
  • dispose(): void

setCustomMesh

Find examples in Playground
  • setCustomMesh(mesh: Mesh): void
  • Disposes and replaces the current meshes in the gizmo with the specified mesh

    Parameters

    • mesh: Mesh

      The mesh to replace the default mesh of the gizmo

    Returns void

Generated using TypeDoc