sparkengineweb
    Preparing search index...

    Interface TriggerEntityProps

    interface TriggerEntityProps {
        boundingBox?: BoundingBoxComponentProps;
        components?: WithType<ComponentProps>[];
        material?: MaterialComponentProps;
        name?: string;
        onTriggerCB?: SerializableCallback<Function>;
        shape?: ShapeComponentProps;
        target?: IEntity;
        transform?: TransformComponentProps;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    The config of the bounding box component. Uses default bounding box config if not set

    components?: WithType<ComponentProps>[]

    The configuration of the material component Uses default material config if not set

    name?: string
    onTriggerCB?: SerializableCallback<Function>

    The callback to trigger when a collision with the target entity is detected.

    The configuration of the shape component. Uses default shape config if not set

    target?: IEntity

    The target of the trigger component

    The configuration of the transform component. Uses default transform config if not set