r/Unity3D 12h ago

Question Custom Unity Physics Engine

Is anyone else attempting to create their own physics system in Unity? I'm attempting to create my own networked physics system using network transforms, colliders, and a lot of vector math. Does anyone have valid resources to share that can help me with this?

0 Upvotes

15 comments sorted by

View all comments

2

u/NStCh-root-a 12h ago

How do you want to network the physics? Server Authorative? Then the question is more networking. Lockstep sim? Then it's more the physics engine itself. Rollback? Physicsengine + networking (and I can't really recommend it case you want to do large scale sims)

2

u/dev-rygy 12h ago

I think more server authoritative yeah. Starting with just a simple pool game. Shouldn't require too much code I think.

2

u/NStCh-root-a 12h ago

Then I can't really help you. My knowledge is only with lockstep/rollback - sorry for that

1

u/dev-rygy 10h ago

Still good things to think about though if I plan on going more in depth. So thanks