Esempio n. 1
0
 public void Execute()
 {
     for (var i = 0; i < Leaves.Length; i++)
     {
         Tree.InsertLeaf(Leaves[i]);
     }
 }
Esempio n. 2
0
 public void Execute()
 {
     for (var i = 0; i < Colliders.Length; i++)
     {
         var index = Tree.InsertLeaf(Colliders[i]);
         Bodies.Add(new Body {
             nodeId = index, collider = Colliders[i]
         });
     }
 }
Esempio n. 3
0
 public void Execute()
 {
     for (var i = 0; i < Colliders.Length; i++)
     {
         var index  = Tree.InsertLeaf(Colliders[i], Transforms[i]);
         var bounds = Colliders[i].CalculateBounds(Transforms[i]);
         bounds.Expand(ExpandSize);
         Bodies.Add(new Body {
             nodeId = index, collider = Colliders[i], transform = Transforms[i], expandedBounds = bounds
         });
     }
 }