GizmoManager

Helps setup gizmo's in the scene to rotate/scale/position meshes

Hierarchy

  • GizmoManager

Implements

Index

Constructors

constructor

  • Instatiates a gizmo manager

    Parameters

    • scene: Scene

      the scene to overlay the gizmos on top of

    Returns GizmoManager

Properties

attachableMeshes

attachableMeshes: Nullable<Array<AbstractMesh>>

Array of meshes which will have the gizmo attached when a pointer selected them. If null, all meshes are attachable. (Default: null)

boundingBoxDragBehavior

boundingBoxDragBehavior: SixDofDragBehavior

When bounding box gizmo is enabled, this can be used to track drag/end events

boundingBoxGizmoEnabled

boundingBoxGizmoEnabled: boolean

If the boundingBox gizmo is enabled

gizmos

gizmos: object

Gizmo's created by the gizmo manager, gizmo will be null until gizmo has been enabled for the first time

Type declaration

positionGizmoEnabled

positionGizmoEnabled: boolean

If the position gizmo is enabled

rotationGizmoEnabled

rotationGizmoEnabled: boolean

If the rotation gizmo is enabled

scaleGizmoEnabled

scaleGizmoEnabled: boolean

If the scale gizmo is enabled

usePointerToAttachGizmos

usePointerToAttachGizmos: boolean

If pointer events should perform attaching/detaching a gizmo, if false this can be done manually via attachToMesh. (Default: true)

Methods

attachToMesh

  • Attaches a set of gizmos to the specified mesh

    Parameters

    Returns void

dispose

  • dispose(): void

Generated using TypeDoc