Go to the documentation of this file.
83 for (
int32 i = 0; i < actionCount; ++i)
278 int32 choice = rand() % 20;
336 bruteOutput = output;
341 if (bruteActor !=
NULL)
b2RayCastOutput m_rayCastOutput
float RayCastCallback(const b2RayCastInput &input, int32 proxyId)
void Keyboard(int key) override
void DrawSegment(const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color) override
Draw a line segment.
b2Vec2 GetCenter() const
Get the center of the AABB.
void DrawAABB(b2AABB *aabb, const b2Color &color)
void RayCast(T *callback, const b2RayCastInput &input) const
void Set(float x_, float y_)
Set this vector to some specified coordinates.
b2Vec2 upperBound
the upper vertex
bool QueryCallback(int32 proxyId)
T b2Clamp(T a, T low, T high)
bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input) const
void DrawString(int x, int y, const char *string,...)
void * GetUserData(int32 proxyId) const
Color for debug drawing. Each value has the range [0,1].
float RandomFloat()
Random number in range [-1,1].
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.
Actor m_actors[e_actorCount]
void DrawPoint(const b2Vec2 &p, float size, const b2Color &color) override
Draw a point.
void GetRandomAABB(b2AABB *aabb)
An axis aligned bounding box.
void DestroyProxy(int32 proxyId)
Destroy a proxy. This asserts if the id is invalid.
int RegisterTest(const char *category, const char *name, TestCreateFcn *fcn)
int32 CreateProxy(const b2AABB &aabb, void *userData)
Create a proxy. Provide a tight fitting AABB and a userData pointer.
b2RayCastInput m_rayCastInput
bool MoveProxy(int32 proxyId, const b2AABB &aabb1, const b2Vec2 &displacement)
void Step(Settings &settings) override
void MoveAABB(b2AABB *aabb)
void Query(T *callback, const b2AABB &aabb) const
b2Vec2 lowerBound
the lower vertex
void Set(float rIn, float gIn, float bIn, float aIn=1.0f)
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:07