private void DrawConeSegments(Vector3 baseCenter) { int numSegments = (int)Mathf.Floor(6.0f + 8.0f * (1.0f + Mathf.Sin(m_phase))); baseCenter -= 0.5f * (m_baseRotQuat * Vector3.up); Color color = (m_style == DebugUtil.Style.Wireframe ? m_wireframeColor : new Color(0.0f, 0.4f, 0.8f)); DebugUtil.DrawCone(baseCenter + m_basePos, m_baseRotQuat, 1.0f, 0.5f, numSegments, color, true, m_style); }
private void DrawConeDimensions(Vector3 baseCenter) { float height = 1.2f + 0.2f * Mathf.Sin(m_phase); float radius = 0.6f - 0.2f * Mathf.Cos(m_phase); baseCenter -= 0.5f * (m_baseRotQuat * Vector3.up); Color color = (m_style == DebugUtil.Style.Wireframe ? m_wireframeColor : new Color(0.0f, 0.4f, 0.8f)); DebugUtil.DrawCone(baseCenter + m_basePos, m_baseRotQuat, height, radius, 12, color, true, m_style); }