Deterministic physics?

Have anyone made deterministic physics solution for unity (objects move exactly in the same way each time, unless forces applied/positions of objects change)? I really need that as I’m trying to recreate one of my favorite games from my childhood, The Incredible Machine, but in 3D and non-deterministic physics of unity makes puzzle levels basically a Luck Based Mission because of random factor involved.

arrr the incredible machine. great game.

and no.

youll probably have to write your own.

No longer! I’ve just submitted a deterministic physics package to the Asset Store and it should be up within a few days. Here’s the Reddit thread with more information.

Unfortunately, it’s 2D right now but I’m thinking about a 3D option (probably thinking too far away right now hehe).

Looks awesome, can you build a webplayer for us to muck with?

Sure will! It’s getting a little late tonight but I’ll get on that tomorrow. I’m not sure how multiplayer will work though since I can’t host a server all day. Maybe a demo of the replay system will be enough.

Unfortunately, I haven’t gotten a response from the Asset Store in a while. If anyone’s interested in getting an early look at DPhysics, look for more information on joining the Beta team here: DPhysics Beta - Cross-platform Deterministic Physics engine - Unity Engine - Unity Discussions .

I’d love if it’d be expanded into 3D. I still can’t understand why guys at nVidia didn’t make fully deterministic physics engine. Though I heard Havok has such feature, so maybe Unity should switch over from PhysX?

The main issues with PhysX is floating point accuracy errors. On top of that, Unity isn’t deterministic which is why even for DPhysics, all calls/events have to be distributed from 1 instance.

Havok also uses floating point math so like PhysX, it can’t produce cross-platform deterministic results.

according to unity release notes, 2d physics are now deterministic.

Really? That’s hard to believe because Box 2D runs the simulation in multiple iterations. I’ll give it a try and see if it’s true. Do you know which release this is for?

http://unity3d.com/unity/whats-new/unity-5.0.2

I’m assuming I’ve interpreted that correctly.

Interesting, but it’s not quite viable for games yet since it only works in the editor. If the 2D physics niche gets filled, I can push DPhysics towards the direction of being RTS/TD/MOBA-specific and tailor it for agent crowds.