private void UpdataData() { skeletalData2d.UpdateVirtualObjects(); lock (skeletalData2d.world.Instances) HubtasticBaseStation.UpdateSkeletalData(JsonConvert.SerializeObject(skeletalData2d)); LastUpdateTime = DateTime.Now; ClearImpulseData(); }
private void UpdateData() { UpdateLights(); // Don't update the LIFX bulbs faster than 20Hz! skeletalData2d.UpdateVirtualObjects(); lock (skeletalData2d.world.worldLock) HubtasticBaseStation.UpdateSkeletalData(JsonConvert.SerializeObject(skeletalData2d)); LastUpdateTime = DateTime.Now; ClearImpulseData(); }