DrawAabb() public method

public DrawAabb ( Jitter.LinearMath.JVector from, Jitter.LinearMath.JVector to, Color color ) : void
from Jitter.LinearMath.JVector
to Jitter.LinearMath.JVector
color Color
return void
示例#1
0
        private void DrawIslands()
        {
            JBBox box;

            foreach (var island in World.Islands)
            {
                box = JBBox.SmallBox;

                foreach (RigidBody body in island.Bodies)
                {
                    box = JBBox.CreateMerged(box, body.BoundingBox);
                }

                DebugDrawer.DrawAabb(box.Min, box.Max, island.IsActive() ? Color.Green : Color.Yellow);
            }
        }
示例#2
0
        private void Walk(DynamicTree <SoftBody.Triangle> tree, int index)
        {
            var tn = tree.Nodes[index];

            if (tn.IsLeaf())
            {
                return;
            }
            else
            {
                Walk(tree, tn.Child1);
                Walk(tree, tn.Child2);

                DebugDrawer.DrawAabb(tn.AABB.Min, tn.AABB.Max, Color.Red);
            }
        }