C# Class Box2DX.Collision.BroadPhase

Datei anzeigen Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Public Properties

Property Type Description
BROADPHASE_MAX ushort
Invalid ushort
IsValidate bool
NullEdge ushort
_bounds Box2DX.Collision.Bound[][]
_freeProxy ushort
_pairManager PairManager
_proxyCount int
_proxyPool Proxy[]
_quantizationFactor System.Vector2
_queryResultCount int
_queryResults ushort[]
_querySortKeys float[]
_timeStamp ushort
_worldAABB AABB

Public Methods

Method Description
AddProxyResult ( ushort proxyId, Proxy proxy, int maxCount, SortKeyFunc sortKey ) : void
BroadPhase ( AABB worldAABB, PairCallback callback ) : System
Commit ( ) : void
CreateProxy ( AABB aabb, object userData ) : ushort
DestroyProxy ( int proxyId ) : void
GetProxy ( int proxyId ) : Proxy
InRange ( AABB aabb ) : bool
MoveProxy ( int proxyId, AABB aabb ) : void
Query ( AABB aabb, object userData, int maxCount ) : int
QuerySegment ( Segment segment, object userData, int maxCount, SortKeyFunc sortKey ) : int
Validate ( ) : void

Private Methods

Method Description
BinarySearch ( Bound bounds, int count, ushort value ) : int
ComputeBounds ( ushort &lowerValues, ushort &upperValues, AABB aabb ) : void
IncrementOverlapCount ( int proxyId ) : void
IncrementTimeStamp ( ) : void
Query ( int &lowerQueryOut, int &upperQueryOut, ushort lowerValue, ushort upperValue, Bound bounds, int boundCount, int axis ) : void
TestOverlap ( BoundValues b, Proxy p ) : bool
TestOverlap ( Proxy p1, Proxy p2 ) : bool

Method Details

AddProxyResult() public method

public AddProxyResult ( ushort proxyId, Proxy proxy, int maxCount, SortKeyFunc sortKey ) : void
proxyId ushort
proxy Proxy
maxCount int
sortKey SortKeyFunc
return void

BroadPhase() public method

public BroadPhase ( AABB worldAABB, PairCallback callback ) : System
worldAABB AABB
callback PairCallback
return System

Commit() public method

public Commit ( ) : void
return void

CreateProxy() public method

public CreateProxy ( AABB aabb, object userData ) : ushort
aabb AABB
userData object
return ushort

DestroyProxy() public method

public DestroyProxy ( int proxyId ) : void
proxyId int
return void

GetProxy() public method

public GetProxy ( int proxyId ) : Proxy
proxyId int
return Proxy

InRange() public method

public InRange ( AABB aabb ) : bool
aabb AABB
return bool

MoveProxy() public method

public MoveProxy ( int proxyId, AABB aabb ) : void
proxyId int
aabb AABB
return void

Query() public method

public Query ( AABB aabb, object userData, int maxCount ) : int
aabb AABB
userData object
maxCount int
return int

QuerySegment() public method

public QuerySegment ( Segment segment, object userData, int maxCount, SortKeyFunc sortKey ) : int
segment Segment
userData object
maxCount int
sortKey SortKeyFunc
return int

Validate() public method

public Validate ( ) : void
return void

Property Details

BROADPHASE_MAX public_oe static_oe property

public static ushort BROADPHASE_MAX
return ushort

Invalid public_oe static_oe property

public static ushort Invalid
return ushort

IsValidate public_oe static_oe property

public static bool IsValidate
return bool

NullEdge public_oe static_oe property

public static ushort NullEdge
return ushort

_bounds public_oe property

public Bound[][],Box2DX.Collision _bounds
return Box2DX.Collision.Bound[][]

_freeProxy public_oe property

public ushort _freeProxy
return ushort

_pairManager public_oe property

public PairManager,Box2DX.Collision _pairManager
return PairManager

_proxyCount public_oe property

public int _proxyCount
return int

_proxyPool public_oe property

public Proxy[] _proxyPool
return Proxy[]

_quantizationFactor public_oe property

public Vector2,System _quantizationFactor
return System.Vector2

_queryResultCount public_oe property

public int _queryResultCount
return int

_queryResults public_oe property

public ushort[] _queryResults
return ushort[]

_querySortKeys public_oe property

public float[] _querySortKeys
return float[]

_timeStamp public_oe property

public ushort _timeStamp
return ushort

_worldAABB public_oe property

public AABB,Box2DX.Collision _worldAABB
return AABB