Ejemplo n.º 1
0
 protected override void Draw(Color color, DebugUtil.Style style, bool depthTest)
 {
     DebugUtil.DrawLine
     (
         transform.position,
         transform.position + transform.TransformVector(LocalEndVector),
         color, depthTest
     );
 }
Ejemplo n.º 2
0
 protected override void Draw(Color color, DebugUtil.Style style, bool depthTest)
 {
     DebugUtil.DrawArrow
     (
         transform.position,
         transform.position + transform.TransformVector(LocalEndVector),
         ConeRadius, ConeHeight, NumSegments, StemThickness,
         color, depthTest, style
     );
 }
Ejemplo n.º 3
0
        protected override void Draw(Color color, DebugUtil.Style style, bool depthTest)
        {
            Quaternion startRot = QuaternionUtil.AxisAngle(Vector3.forward, StartAngle * MathUtil.Deg2Rad);

            DebugUtil.DrawArc
            (
                transform.position,
                transform.rotation * startRot * Vector3.right,
                transform.rotation * Vector3.forward,
                ArcAngle * MathUtil.Deg2Rad, Radius, NumSegments,
                color, depthTest
            );
        }
Ejemplo n.º 4
0
    public void Update()
    {
        m_phase += Time.deltaTime * 2.0f * Mathf.PI / 3.0f;

        while (m_phase >= MathUtil.TwoPi)
        {
            m_iStyle = (m_iStyle + 1) % m_aStyle.Length;
            m_style  = m_aStyle[m_iStyle];
            m_phase -= MathUtil.TwoPi;
        }

        m_baseRotDeg  = -20.0f * Mathf.Cos(m_phase);
        m_baseRotQuat = Quaternion.Euler(20.0f * Mathf.Sin(m_phase), 0.0f, -20.0f * Mathf.Cos(m_phase));

        DrawBoxDimensions(new Vector3(0.0f, 0.0f, 0.0f));
        DrawRectDimensions(new Vector3(3.0f, 0.0f, 0.0f));

        DrawArrowDimensions(new Vector3(6.0f, 0.0f, 0.0f));
        DrawArrowSegments(new Vector3(9.0f, 0.0f, 0.0f));

        DrawCircleSegments(new Vector3(0.0f, -3.0f, 0.0f));
        DrawSphereTripleCirclesSegments(new Vector3(3.0f, -3.0f, 0.0f));
        DrawSphereLatSegments(new Vector3(6.0f, -3.0f, 0.0f));
        DrawSphereLongSegments(new Vector3(9.0f, -3.0f, 0.0f));

        DrawCylinderDimensions(new Vector3(0.0f, -6.0f, 0.0f));
        DrawCylinderSegments(new Vector3(3.0f, -6.0f, 0.0f));

        DrawConeDimensions(new Vector3(6.0f, -6.0f, 0.0f));
        DrawConeSegments(new Vector3(9.0f, -6.0f, 0.0f));

        DrawCapsuleDimensions(new Vector3(0.0f, -9.0f, 0.0f));
        DrawCapsuleLatSegments(new Vector3(3.0f, -9.0f, 0.0f));
        DrawCapsuleLongSegments(new Vector3(6.0f, -9.0f, 0.0f));
        DrawCapsule2DSegments(new Vector3(9.0f, -9.0f, 0.0f));
    }
Ejemplo n.º 5
0
 protected override void Draw(Color color, DebugUtil.Style style, bool depthTest)
 {
     DebugUtil.DrawCircle(transform.position, transform.rotation * Vector3.back, Radius, NumSegments, color, depthTest, style);
 }
Ejemplo n.º 6
0
 protected abstract void Draw(Color color, DebugUtil.Style style, bool depthTest);