dacha
    Preparing search index...

    Interface CharacterHitEvent

    CharacterController dispatches it on the actor of a character for every obstacle it hits.

    Event name: CharacterHit from dacha/events.

    Hierarchy (View Summary)

    Index
    actor: Actor

    The actor the character hit.

    currentTarget: EventTarget

    Current event target

    distance: number

    The distance to the hit, from where this move started.

    kind: "ground" | "wall" | "ceiling"

    ground, wall or ceiling. In the free motion mode, always wall.

    normal: Vector

    The direction from the hit surface to the character.

    point: { x: number; y: number }

    The hit point, in world space.

    stopPropagation: () => void

    Function to stop the event propagation

    target: Actor

    Target of the event

    type: EventType

    Type of the event