public DrawAabb ( Jitter.LinearMath.JVector from, Jitter.LinearMath.JVector to, Color color ) : void | ||
from | Jitter.LinearMath.JVector | |
to | Jitter.LinearMath.JVector | |
color | Color | |
Результат | void |
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); } }
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); } }