Calculate physics2D on server side and send values to clients.
Options
crutch12
✭
What is the easiest way to add calculating of physics2D on own photon server? I want to all clients would have identical values. It has to calculate ragdoll bodies (position, rigidbody2D, HingeJoint2D). Please, Help!
0
Answers
-
there were few discussions about this already. Please take time to find information.
as first step you may just schedule execution of physics method in room's fiber. something like
ExecutionFiber.Schedule(this.CalculatePhysics);0