How World Solver is working?

This forum is currently in read-only mode.
From the Asset Store
_______ Huge collection of metal fixtures ________
  • There are options under "World Solver" property:

    <img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /> Linear

    <img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /> Adaptive

    <img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /> Exact

    What differences are between them?

    In one .cap (Kick It) there was possibility to give circle object such great force that it could go throught wall and leave playfield... when I changed World Solver into "exact" then I wasn't able to repeat this action.

    And about calculation... how relatively more complex are calculations done with Exact method instead of Linear? Is it like 2 times or maybe 10 or 100 times?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • These affect the accuracy of the physics simulation vs. the speed it runs. Linear uses less CPU, allowing for more objects, but has less realistic physics (such as some situations where you can kick things through walls, usually only when huge forces are involved). Adaptive is slower but has improved accuracy, and exact is basically for realistic simulations where accuracy is more important than speed. In games speed is much more important than accuracy, so I've set the default to linear - this is what the physics engine technical docs also recommends as the best for games.

    Physics easily chews up a lot of CPU so definitely choose linear for games and try not to allow situations where unrealistic things can happen (such as giving objects ridiculously huge forces). It's a similar story for the friction model, adaptive is if you want your game to run fast, exact is for if you want it to be exactly true to the real world.

    I'm not sure how much more complex the calculations are, but try a stress test and see how many objects you can create before you hit a certain framerate. I'm pretty sure you can create at least twice as many objects with Linear / Adaptive than with Exact / Exact.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)