Calculate physics2D on server side and send values to clients.

Options
crutch12
crutch12
edited September 2016 in Photon Server
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!

Answers

  • chvetsov
    Options
    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);