dacha
    Preparing search index...

    Interface CollisionEnterEvent

    PhysicsSystem dispatches it on each of two actors when their colliders start to touch.

    Event name: CollisionEnter from dacha/events.

    Hierarchy (View Summary)

    Index
    actor: Actor

    The other actor.

    contactPoints: { x: number; y: number }[]

    The points where the colliders touch, in world space. One or two points.

    currentTarget: EventTarget

    Current event target

    normal: Vector

    The direction from target to the other actor.

    penetration: number

    How deep the colliders overlap along normal, in world units.

    stopPropagation: () => void

    Function to stop the event propagation

    target: Actor

    Target of the event

    type: EventType

    Type of the event