private void DrawCylinderDimensions(Vector3 center) { float height = 1.2f + 0.2f * Mathf.Sin(m_phase); float radius = 0.6f - 0.2f * Mathf.Cos(m_phase); DebugUtil.DrawCylinder(center + m_basePos, m_baseRotQuat, height, radius, 12, Color.white); }
private void DrawCylinderSegments(Vector3 center) { int numSegments = (int)Mathf.Floor(6.0f + 8.0f * (1.0f + Mathf.Sin(m_phase))); Color color = (m_style == DebugUtil.Style.Wireframe ? m_wireframeColor : new Color(0.2f, 0.6f, 0.0f)); DebugUtil.DrawCylinder(center + m_basePos, m_baseRotQuat, 1.2f, 0.6f, numSegments, color, true, m_style); }
private void DrawCylinderDimensions(Vector3 center) { float height = 1.2f + 0.2f * Mathf.Sin(m_phase); float radius = 0.6f - 0.2f * Mathf.Cos(m_phase); Color color = (m_style == DebugUtil.Style.Wireframe ? m_wireframeColor : new Color(0.2f, 0.6f, 0.0f)); DebugUtil.DrawCylinder(center + m_basePos, m_baseRotQuat, height, radius, 12, color, true, m_style); }
private void DrawCylinderSegments(Vector3 center) { int numSegments = (int)Mathf.Floor(6.0f + 8.0f * (1.0f + Mathf.Sin(m_phase))); DebugUtil.DrawCylinder(center + m_basePos, m_baseRotQuat, 1.2f, 0.6f, numSegments, Color.white); }