dacha
    Preparing search index...

    Interface SegmentColliderConfig

    Options for a segment collider: a line between two points.

    Hierarchy (View Summary)

    Index
    debugColor?: string

    The color of the collider in the debug view of the editor.

    disabled: boolean

    Turns the collider off.

    layer: string

    The collision layer. Layers decide which colliders collide.

    offset: Point

    Moves the shape away from the position of the actor.

    point1?: Point

    The start of the segment, relative to the actor.

    point2?: Point

    The end of the segment, relative to the actor.

    type: "segment"

    The shape type. It decides which size fields the config has.