IronWarrior / UnityPhysics-GameObjects

Proof of concept wrapper to allow using Unity Physics directly with Game Objects (without ECS).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository demonstrates how to directly interact with Unity Physics without using Unity's Entity Component System (ECS)†.

2021-12-05.12-06-13.mp4

Unity Physics is a deterministic‡ and stateless physics engine by Unity Technologies. You can read more about it here. Although it comes packaged with prebuilt components for Unity's entity component system, the core engine is decoupled from ECS. Determinism and statelessness are very useful for networking, where consistency in physics between server and client is important.

🚨 This project is a very minimal proof of concept; no thought has been put into API design, completeness or performance.

Unity Physics does depend on the Entity struct itself from ECS.

Unity Physics is described as "deterministic", but I assume this is restricted to determinism across a single platform due to inconsistencies between some floating point arithmetic between platforms (e.g. ARM vs x86).

About

Proof of concept wrapper to allow using Unity Physics directly with Game Objects (without ECS).


Languages

Language:C# 100.0%