private void CmdSync(float interpolationTime, Vector3 position, Quaternion rotation, Vector3 velocity) { // add keyframe to buffer _syncBuffer.AddKeyframe(interpolationTime, position, rotation, velocity); // send it to other clients RpcSync(interpolationTime, position, rotation, velocity); }
public override void Sync(RpcArgs args) { _syncBuffer.AddKeyframe(args.GetNext <float>(), args.GetNext <Vector3>(), args.GetNext <Quaternion>(), args.GetNext <Vector3>()); }