nape-js API
    Preparing search index...

    Class CbEvent

    Enumeration of physics callback event types.

    Use these singletons to specify which phase of an interaction a listener should respond to:

    • BEGIN — fired once when two interactors first make contact
    • ONGOING — fired every simulation step while the interaction persists
    • END — fired once when two interactors separate
    • WAKE — fired when a body or constraint wakes from sleep
    • SLEEP — fired when a body or constraint falls asleep
    • BREAK — fired when a constraint exceeds its maxForce/maxError and breaks
    • PRE — fired before collision resolution; allows per-step accept/ignore decisions

    Valid events per listener type:

    Converted from nape-compiled.js lines 516–657.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    Methods