Code Monkey home page Code Monkey logo

Comments (1)

louis-langholtz avatar louis-langholtz commented on May 25, 2024 1

I wouldn't advise serialization/deserialization while the world was locked. That'd mean copying the world in the middle of a simulation step. Maybe someday that'd be doable, but I think the work for that is significantly harder than dealing with a copy outside of the step. So e_locked state should basically not be an issue.

The e_substepping and e_stepComplete state are a similar situation in that it should basically not be an issue either. Substepping a world is better thought of as a way for debugging what's going on during a world step. And when sub stepping has gotten to the point where an entire step has been sub-stepped through, one gets to the e_stepComplete state. My advice, like with e_locked, pass on this state for now and just don't use sub stepping or don't serialize/deserialize with sub stepping turned on.

I'll have to think about e_needsContactFiltering more.

Hmm... perhaps m_inv_dt0 should not be part of the comparable state of a world used for assessing equality.

In any case, as you're aware, it will be set in the step. And you can set StepConf::dtRatio too. If needed, I believe one could call Step with a deltaTime of zero and the dtRatio of what the previous time delta would have been, multiplied by the m_inv_dt0. See Step(World& world, Time delta, TimestepIters velocityIterations, TimestepIters positionIterations) for example.

from playrho.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.