//Updates the physics data and displays in console static void updatePhysics(object sender, PhysicsEventArgs e) { Console.WriteLine("Physics Data:"); Console.WriteLine("Fuel: " + e.PhysicsData.Fuel); Console.WriteLine("Gear: " + e.PhysicsData.Gear); Console.WriteLine("Road temp: " + e.PhysicsData.RoadTemp); }
public virtual void OnPhysicsUpdated(PhysicsEventArgs e) { if (PhysicsDataUpdated != null) { PhysicsDataUpdated(this, e); } }