private void OnDrawGizmos() { if (debugParticles) { try { //meshSampler.DebugDraw(); gravity.DebugDraw(); buoyancy.DebugDraw(); waterDrag.DebugDraw(); } catch (Exception) { } } if (debugBounds) { try { meshSampler.DebugDraw(); } catch (Exception) { } } }