Keeps long term statistics about collision handling, for testing, debugging, and performance measurement.

Properties

searches_: number = 0

number of times we had to do a binary search for collision

Methods

  • Adds to number of times that the simulation state was restored to an earlier state because a collision was detected.

    Parameters

    • backups: number

      additional number of times that simulation was backed up in time.

    Returns void

  • Adds to number of collisions handled.

    Parameters

    • collisions: number

      additional number of collisions handled

    Returns void

  • Adds to number of impulses applied.

    Parameters

    • impulses: number

      additional number of impulses applied

    Returns void

  • Adds to number of binary searches completed. A binary search occurs when we don't have an accurate estimate of the time that a collision occurs.

    Parameters

    • searches: number

      additional number of binary searches completed

    Returns void

  • Adds to number of times that the DiffEqSolver stepped the simulation forward.

    Parameters

    • steps: number

      additional number of times that the DiffEqSolver stepped the simulation forward.

    Returns void

  • Returns total cumulative number of times that the simulation state was restored to an earlier state because a collision was detected.

    Returns number

    total number of times simulation state was moved back in time

  • Returns total cumulative number of collisions that have been handled.

    Returns number

    number of collisions handled

  • Returns total cumulative number of impulses that have been applied. This can be larger than the number of collisions when the collision handling applies several impulses as collisions ricochet back and forth during a single collision event.

    Returns number

    number of impulses applied

  • Returns total cumulative number of binary searches that have been done. A binary search occurs when we don't have an accurate estimate of the time that a collision occurs.

    Returns number

    number of collision searches done

  • Returns total cumulative number of DiffEqSolver steps that have been done.

    Returns number

    total number of DiffEqSolver steps done.

Generated using TypeDoc