Skip to content

[question] how does one test that the PhysicsEngine has converged? #500

Description

@CompSciFutures

The PhysicsEngine is super neat, but for many situations one doesn't need to keep using an onUpdate() + PhysicsEngine.update() loop after a while and when one has a few of them going they start to bog down the browser a bit.

As an example use case, once a widget has collided/bounced/whatevered its way into place then I would like to temporarily disable that simulation to avoid unnecessarily eating CPU and generating infinitesimally small transformation changes.

Has anyone worked out a way to test if a particular instance of a PhysicsEngine has converged WRT some epsilon?

Obviously there are certain configurations where the PhysicsEngine won't ever converge.

ap

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions