Kimbatt / unity-deterministic-physics

Cross-platform deterministic physics simulation in Unity, using DOTS physics and soft floats
497 stars 64 forks source link

Editor Authoring functionality missing #5

Open defic opened 3 years ago

defic commented 3 years ago

First of all I'd like to thank you @Kimbatt for sharing this project. So far it has worked great.

Unity DOTS physics has editor authoring components with the included Unity.Physics.Editor & Unity.Physics.Hybrid (not entirely sure if both are required). With Unity.Physics it is possible to design gameobjects in the editor and use those in the code through subscenes and entity prefabs, but the authoring components are not compatible with this project. At the moment including Unity.Physics.Editor & Unity.Physics.Hybrid gives a ton of errors. I think this project would be complete with the authoring functionality.

Kimbatt commented 3 years ago

Hi, I made this project only as a proof-of-concept, and I probably won't implement the editor functionalities; I'd need to make extra sure that the physics state is set up from editor values in a deterministic way, and have a deterministic float-sfloat conversion from the editor input field (like position/rotation values). Maybe these wouldn't be a problem, I'm not sure. Maybe if I have a lot of free time in the future.