ScaleGizmo

Gizmo that enables scaling a mesh along 3 axis

Hierarchy

Implements

Index

Constructors

constructor

Properties

attachedMesh

attachedMesh: Nullable<AbstractMesh>

gizmoLayer

The utility layer the gizmo will be added to

scaleRatio

scaleRatio: number

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

snapDistance

snapDistance: number

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

uniformScaleGizmo

uniformScaleGizmo: AxisScaleGizmo

Internal gizmo used to scale all axis equally

updateGizmoPositionToMatchAttachedMesh

updateGizmoPositionToMatchAttachedMesh: boolean

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

updateGizmoRotationToMatchAttachedMesh

updateGizmoRotationToMatchAttachedMesh: boolean

xGizmo

Internal gizmo used for interactions on the x axis

yGizmo

Internal gizmo used for interactions on the y axis

zGizmo

Internal gizmo used for interactions on the z axis

Methods

dispose

  • dispose(): void

setCustomMesh

  • 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