platformer - v1.0.0
    Preparing search index...
    • Factory that creates the collision system for the ECS world.

      Handles:

      • AABB collision detection
      • Dynamic vs static resolution
      • One-way platforms
      • Trigger enter/stay/exit events
      • Ground detection for rigid bodies

      Returns (ecs: default) => void

      A collision system function to be executed each frame.

      • Only entities with transform and collider are considered.
      • Collision resolution is separated into horizontal and vertical passes.
      • Trigger interactions are tracked frame-to-frame to generate enter, stay, and exit events.
      • Designed for axis-aligned bounding boxes (AABB).