protected override void OnDestroy() { if (vehicle != IntPtr.Zero) { PhysXLib.DestroyVehicle(vehicle); } base.OnDestroy(); }