예제 #1
0
 private void UpdataData()
 {
     skeletalData2d.UpdateVirtualObjects();
     lock (skeletalData2d.world.Instances)
         HubtasticBaseStation.UpdateSkeletalData(JsonConvert.SerializeObject(skeletalData2d));
     LastUpdateTime = DateTime.Now;
     ClearImpulseData();
 }
예제 #2
0
        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();
        }