Interface IBroadPhase<TNode>
- Namespace
- Alis.Core.Physic.Collision
- Assembly
- Alis.dll
The broad phase interface
public interface IBroadPhase<TNode> where TNode : structType Parameters
TNode
Properties
ProxyCount
Gets the value of the proxy count
int ProxyCount { get; }Property Value
Methods
AddProxy(ref AABB)
Adds the proxy using the specified aabb
int AddProxy(ref AABB aabb)Parameters
aabbAABB-
The aabb
Returns
- int
-
The int
GetFatAABB(int, out AABB)
Gets the fat aabb using the specified proxy id
void GetFatAABB(int proxyId, out AABB aabb)Parameters
GetProxy(int)
Gets the proxy using the specified proxy id
TNode GetProxy(int proxyId)Parameters
proxyIdint-
The proxy id
Returns
- TNode
-
The node
MoveProxy(int, ref AABB, Vector2)
Moves the proxy using the specified proxy id
void MoveProxy(int proxyId, ref AABB aabb, Vector2 displacement)Parameters
Query(BroadPhaseQueryCallback, ref AABB)
Queries the callback
void Query(BroadPhaseQueryCallback callback, ref AABB aabb)Parameters
callbackBroadPhaseQueryCallback-
The callback
aabbAABB-
The aabb
RayCast(BroadPhaseRayCastCallback, ref RayCastInput)
Rays the cast using the specified callback
void RayCast(BroadPhaseRayCastCallback callback, ref RayCastInput input)Parameters
callbackBroadPhaseRayCastCallback-
The callback
inputRayCastInput-
The input
RemoveProxy(int)
Removes the proxy using the specified proxy id
void RemoveProxy(int proxyId)Parameters
proxyIdint-
The proxy id
SetProxy(int, ref TNode)
Sets the proxy using the specified proxy id
void SetProxy(int proxyId, ref TNode proxy)Parameters
proxyIdint-
The proxy id
proxyTNode-
The proxy
ShiftOrigin(Vector2)
Shifts the origin using the specified new origin
void ShiftOrigin(Vector2 newOrigin)Parameters
newOriginVector2-
The new origin
TestOverlap(int, int)
Describes whether this instance test overlap
bool TestOverlap(int proxyIdA, int proxyIdB)Parameters
Returns
- bool
-
The bool
TouchProxy(int)
Touches the proxy using the specified proxy id
void TouchProxy(int proxyId)Parameters
proxyIdint-
The proxy id
UpdatePairs(BroadphaseDelegate)
Updates the pairs using the specified callback
void UpdatePairs(BroadphaseDelegate callback)Parameters
callbackBroadphaseDelegate-
The callback