How World Solver is working?

New releases and general discussions.

Post » Tue Nov 27, 2007 3:13 am

There are options under "World Solver" property:
:arrow: Linear
:arrow: Adaptive
: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?
Posts: 219
Reputation: 3,013

Post » Tue Nov 27, 2007 3:37 am

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.
Scirra Founder
Posts: 23,440
Reputation: 186,070

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests