public void QueryCircle( Vector2 point, float radius, VoltBuffer <VoltBody> outBuffer) { outBuffer.Add(this.bodies, this.count); }
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); } } }
public void RayCast( ref VoltRayCast ray, VoltBuffer <VoltBody> outBuffer) { outBuffer.Add(this.bodies, this.count); }
public void QueryPoint( Vector2 point, VoltBuffer <VoltBody> outBuffer) { outBuffer.Add(this.bodies, this.count); }
public void QueryOverlap( VoltAABB aabb, VoltBuffer <VoltBody> outBuffer) { outBuffer.Add(this.bodies, this.count); }