Table of Contents

Interface IBroadPhase<TNode>

Namespace
Alis.Core.Physic.Collision
Assembly
Alis.dll

The broad phase interface

public interface IBroadPhase<TNode> where TNode : struct

Type Parameters

TNode

Properties

ProxyCount

Gets the value of the proxy count

int ProxyCount { get; }

Property Value

int

Methods

AddProxy(ref AABB)

Adds the proxy using the specified aabb

int AddProxy(ref AABB aabb)

Parameters

aabb AABB

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

proxyId int

The proxy id

aabb AABB

The aabb

GetProxy(int)

Gets the proxy using the specified proxy id

TNode GetProxy(int proxyId)

Parameters

proxyId int

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

proxyId int

The proxy id

aabb AABB

The aabb

displacement Vector2

The displacement

Query(BroadPhaseQueryCallback, ref AABB)

Queries the callback

void Query(BroadPhaseQueryCallback callback, ref AABB aabb)

Parameters

callback BroadPhaseQueryCallback

The callback

aabb AABB

The aabb

RayCast(BroadPhaseRayCastCallback, ref RayCastInput)

Rays the cast using the specified callback

void RayCast(BroadPhaseRayCastCallback callback, ref RayCastInput input)

Parameters

callback BroadPhaseRayCastCallback

The callback

input RayCastInput

The input

RemoveProxy(int)

Removes the proxy using the specified proxy id

void RemoveProxy(int proxyId)

Parameters

proxyId int

The proxy id

SetProxy(int, ref TNode)

Sets the proxy using the specified proxy id

void SetProxy(int proxyId, ref TNode proxy)

Parameters

proxyId int

The proxy id

proxy TNode

The proxy

ShiftOrigin(Vector2)

Shifts the origin using the specified new origin

void ShiftOrigin(Vector2 newOrigin)

Parameters

newOrigin Vector2

The new origin

TestOverlap(int, int)

Describes whether this instance test overlap

bool TestOverlap(int proxyIdA, int proxyIdB)

Parameters

proxyIdA int

The proxy id

proxyIdB int

The proxy id

Returns

bool

The bool

TouchProxy(int)

Touches the proxy using the specified proxy id

void TouchProxy(int proxyId)

Parameters

proxyId int

The proxy id

UpdatePairs(BroadphaseDelegate)

Updates the pairs using the specified callback

void UpdatePairs(BroadphaseDelegate callback)

Parameters

callback BroadphaseDelegate

The callback