Пример #1
0
 public void QueryCircle(
     Vector2 point,
     float radius,
     VoltBuffer <VoltBody> outBuffer)
 {
     outBuffer.Add(this.bodies, this.count);
 }
Пример #2
0
 public void CircleCast(
     ref VoltRayCast ray,
     float radius,
     VoltBuffer <VoltBody> outBuffer)
 {
     outBuffer.Add(this.bodies, this.count);
 }
 /// <summary>
 /// If the node is a leaf, we do not test the actual proxy bounding box.
 /// This is redundant since we will be testing the body's bounding box in
 /// the first step of the narrowphase, and the two are almost equivalent.
 /// </summary>
 private void ExpandChild(int query, VoltBuffer <VoltBody> outBuffer)
 {
     if (query != TreeBroadphase.NULL_NODE)
     {
         Node node = this.nodes[query];
         if (node.IsLeaf)
         {
             outBuffer.Add(node.body);
         }
         else
         {
             this.queryStack.Push(query);
         }
     }
 }
Пример #4
0
 public void RayCast(
     ref VoltRayCast ray,
     VoltBuffer <VoltBody> outBuffer)
 {
     outBuffer.Add(this.bodies, this.count);
 }
Пример #5
0
 public void QueryPoint(
     Vector2 point,
     VoltBuffer <VoltBody> outBuffer)
 {
     outBuffer.Add(this.bodies, this.count);
 }
Пример #6
0
 public void QueryOverlap(
     VoltAABB aabb,
     VoltBuffer <VoltBody> outBuffer)
 {
     outBuffer.Add(this.bodies, this.count);
 }