Go to the documentation of this file.
23 #ifndef B2_BROAD_PHASE_H
24 #define B2_BROAD_PHASE_H
54 int32 CreateProxy(
const b2AABB& aabb,
void* userData);
57 void DestroyProxy(
int32 proxyId);
64 void TouchProxy(
int32 proxyId);
70 void* GetUserData(
int32 proxyId)
const;
73 bool TestOverlap(
int32 proxyIdA,
int32 proxyIdB)
const;
76 int32 GetProxyCount()
const;
80 void UpdatePairs(T* callback);
85 void Query(T* callback,
const b2AABB& aabb)
const;
98 int32 GetTreeHeight()
const;
101 int32 GetTreeBalance()
const;
104 float GetTreeQuality()
const;
109 void ShiftOrigin(
const b2Vec2& newOrigin);
115 void BufferMove(
int32 proxyId);
116 void UnBufferMove(
int32 proxyId);
172 template <
typename T>
202 callback->AddPair(userDataA, userDataB);
221 template <
typename T>
227 template <
typename T>
void UpdatePairs(T *callback)
Update the pairs. This results in pair callbacks. This can only add pairs.
void ShiftOrigin(const b2Vec2 &newOrigin)
void * GetUserData(int32 proxyId) const
Get user data from a proxy. Returns nullptr if the id is invalid.
const b2AABB & GetFatAABB(int32 proxyId) const
Get the fat AABB for a proxy.
int32 GetProxyCount() const
Get the number of proxies.
void RayCast(T *callback, const b2RayCastInput &input) const
int32 GetTreeBalance() const
Get the balance of the embedded tree.
const b2AABB & GetFatAABB(int32 proxyId) const
Get the fat AABB for a proxy.
void * GetUserData(int32 proxyId) const
B2_API bool b2TestOverlap(const b2Shape *shapeA, int32 indexA, const b2Shape *shapeB, int32 indexB, const b2Transform &xfA, const b2Transform &xfB)
Determine if two generic shapes overlap.
void ClearMoved(int32 proxyId)
float GetTreeQuality() const
Get the quality metric of the embedded tree.
int32 GetTreeHeight() const
Get the height of the embedded tree.
An axis aligned bounding box.
void Query(T *callback, const b2AABB &aabb) const
float GetAreaRatio() const
Get the ratio of the sum of the node areas to the root area.
void RayCast(T *callback, const b2RayCastInput &input) const
void ShiftOrigin(const b2Vec2 &newOrigin)
int32 GetMaxBalance() const
bool TestOverlap(int32 proxyIdA, int32 proxyIdB) const
Test overlap of fat AABBs.
void Query(T *callback, const b2AABB &aabb) const
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:06