News for hackers. Stuff that matters.
Re:SpacetimeDB by kriper on Wednesday April 09, 2025 @12:38PM (#43634119)
I don't really understand how you would write a game server using this tech. Lets say you need to simulate physics, pathfinding, animation etc on server. How one would integrate all of this? In regular world you just use unreal/unity headless mode that includes all of this but using spacetimedb requires ditching the game engine and reimplementing everything from scratch?
Re:SpacetimeDB by nerflad on Wednesday April 09, 2025 @12:53PM (#43634360)
Just put it all in stored procedures. What could go wrong?
Re:SpacetimeDB by janderland on Saturday April 12, 2025 @01:10PM (#43666217)
Forgive my ignorance, but why would you implement physics and animations on the server? I feel like you can get away with basic positional data and do the rest of that on the clients.
Re:SpacetimeDB by kriper on Sunday April 13, 2025 @01:11PM (#43674249)
You need physics in order to make movement server authoritative. Otherwise player will be able to fly around and ignore collusions. You might need animation state in server if you are making a fps shooter and want to calculate raycasts properly.