platformer - v1.0.0
    Preparing search index...

    Defines a rectangular collision area for an entity.

    interface default {
        oneWay: boolean;
        onTrigger?: (self: symbol, other: symbol, phase: CollisionPhase) => void;
        size: Size;
    }
    Index

    Properties

    oneWay: boolean

    Whether the collider acts as a one-way platform.

    onTrigger?: (self: symbol, other: symbol, phase: CollisionPhase) => void

    Trigger callback invoked during collision phase changes.

    Type Declaration

      • (self: symbol, other: symbol, phase: CollisionPhase): void
      • Parameters

        • self: symbol

          This entity's id.

        • other: symbol

          The other entity's id.

        • phase: CollisionPhase

          Current collision phase.

        Returns void

    size: Size

    Collision box dimensions.