Small World Engine API Reference - v0.78.00
    Preparing search index...

    Class PickingBehavior

    Holds an Object3D's pointer-event handlers. Not constructed directly by user code -- Object3D lazily creates and attaches one the first time onPointerDown/onPointerUp/onPointerMove is assigned; its own getters/setters delegate here.

    Hierarchy (View Summary)

    Index
    isActive: boolean = true
    onPointerDown?: (ray: Ray, intersectionPoint: Vector3D) => void
    onPointerMove?: (ray: Ray) => void
    onPointerUp?: () => void
    target: CameraInterfaceData | Object3D | undefined = undefined

    The object this behavior is attached to. Set automatically.

    uuid: string = ...
    inspector?: Record<string, InspectorField>
    • Returns an independent copy of this behavior (own uuid, target cleared -- the caller is expected to attachBehavior() it onto the new host, which sets target correctly via onAttach()). Used by Object3D.clone() (Maker's Duplicate command).

      Returns Behavior