예제 #1
0
        public static void DrawBounds(Camera camera, Color color, Box3d bounds, Matrix4x4d localToWorld)
        {
            if (camera == null)
            {
                return;
            }

            bounds.GetCorners(m_corners4d);

            IList <Vector4> verts = Vertices(8);

            for (int i = 0; i < 8; i++)
            {
                verts[i] = MathConverter.ToVector4(localToWorld * m_corners4d[i]);
            }

            DrawVerticesAsLines(camera, color, verts, m_cube);
        }