示例#1
0
 void sync_server()
 {
     syncx_compressed     = CONSTANTS.comp_pos(propRB.position.x);
     syncy_compressed     = CONSTANTS.comp_pos(propRB.position.y);
     syncspeed_compressed = CONSTANTS.comp_pos(propRB.velocity.magnitude);
     syncrot    = propRB.rotation;
     syncrotvel = propRB.angularVelocity;
 }