コード例 #1
0
    private void DrawCapsuleDimensions(Vector3 center)
    {
        float height = 1.0f + 0.2f * Mathf.Sin(m_phase);
        float radius = 0.5f - 0.2f * Mathf.Cos(m_phase);

        DebugUtil.DrawCapsule(center + m_basePos, m_baseRotQuat, height, radius, 4, 6, Color.white);
    }
コード例 #2
0
    private void DrawCapsuleLongSegments(Vector3 center)
    {
        int longSegments = (int)Mathf.Floor(4.0f + 4.0f * (1.0f + Mathf.Sin(m_phase)));

        Color color = (m_style == DebugUtil.Style.Wireframe ? m_wireframeColor : new Color(0.5f, 0.1f, 0.7f));

        DebugUtil.DrawCapsule(center + m_basePos, m_baseRotQuat, 1.0f, 0.5f, 4, longSegments, color, true, m_style);
    }
コード例 #3
0
    private void DrawCapsuleDimensions(Vector3 center)
    {
        float height = 1.0f + 0.2f * Mathf.Sin(m_phase);
        float radius = 0.5f - 0.2f * Mathf.Cos(m_phase);

        Color color = (m_style == DebugUtil.Style.Wireframe ? m_wireframeColor : new Color(0.5f, 0.1f, 0.7f));

        DebugUtil.DrawCapsule(center + m_basePos, m_baseRotQuat, height, radius, 4, 6, color, true, m_style);
    }
コード例 #4
0
    private void DrawCapsuleLongSegments(Vector3 center)
    {
        int longSegments = (int)Mathf.Floor(4.0f + 4.0f * (1.0f + Mathf.Sin(m_phase)));

        DebugUtil.DrawCapsule(center + m_basePos, m_baseRotQuat, 1.0f, 0.5f, 4, longSegments, Color.white);
    }