Skip to content

what is the purpose of simulator.getTotalMovement()? #67

@jo-brue

Description

@jo-brue

Hi & first of all thank you for this great library!
I am trying to find out when the simulation has reached a certain "heat" to stop the rendering and save performance. I thought simulation.getTotalMovement() could help me there but that always returns 0. Is that intended or am i using it wrong?
I am calling getTotalMovement() directly after step(). I can see the simulation is working because i am rendering the nodes as threejs objects.

( I guess this line is somehow related? You can also see the totalMovement var never being set to anything different than 0... )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions