Public Types | |
enum | Mode { e_any = 0, e_closest = 1, e_multiple = 2 } |
Public Member Functions | |
void | Create (int32 index) |
void | DestroyBody () |
RayCast () | |
void | Step (Settings &settings) override |
void | UpdateUI () override |
![]() | |
virtual void | BeginContact (b2Contact *contact) override |
Called when two fixtures begin to touch. More... | |
void | CompleteBombSpawn (const b2Vec2 &p) |
void | DrawTitle (const char *string) |
virtual void | EndContact (b2Contact *contact) override |
Called when two fixtures cease to touch. More... | |
virtual void | JointDestroyed (b2Joint *joint) |
virtual void | Keyboard (int key) |
virtual void | KeyboardUp (int key) |
void | LaunchBomb () |
void | LaunchBomb (const b2Vec2 &position, const b2Vec2 &velocity) |
virtual void | MouseDown (const b2Vec2 &p) |
virtual void | MouseMove (const b2Vec2 &p) |
virtual void | MouseUp (const b2Vec2 &p) |
virtual void | PostSolve (b2Contact *contact, const b2ContactImpulse *impulse) override |
virtual void | PreSolve (b2Contact *contact, const b2Manifold *oldManifold) override |
void | ShiftMouseDown (const b2Vec2 &p) |
void | ShiftOrigin (const b2Vec2 &newOrigin) |
void | SpawnBomb (const b2Vec2 &worldPt) |
Test () | |
virtual | ~Test () |
![]() | |
virtual | ~b2ContactListener () |
Static Public Member Functions | |
static Test * | Create () |
Public Attributes | |
b2Body * | m_bodies [e_maxBodies] |
int32 | m_bodyIndex |
b2CircleShape | m_circle |
float | m_degrees |
b2EdgeShape | m_edge |
int32 | m_mode |
b2PolygonShape | m_polygons [4] |
Additional Inherited Members | |
![]() | |
b2Body * | m_bomb |
bool | m_bombSpawning |
b2Vec2 | m_bombSpawnPoint |
DestructionListener | m_destructionListener |
b2Body * | m_groundBody |
b2Profile | m_maxProfile |
b2MouseJoint * | m_mouseJoint |
b2Vec2 | m_mouseWorld |
int32 | m_pointCount |
ContactPoint | m_points [k_maxContactPoints] |
int32 | m_stepCount |
int32 | m_textIncrement |
int32 | m_textLine |
b2Profile | m_totalProfile |
b2World * | m_world |
b2AABB | m_worldAABB |
Definition at line 153 of file ray_cast.cpp.
enum RayCast::Mode |
Enumerator | |
---|---|
e_any | |
e_closest | |
e_multiple |
Definition at line 157 of file ray_cast.cpp.
|
inline |
Definition at line 164 of file ray_cast.cpp.
Definition at line 230 of file ray_cast.cpp.
|
inlinestatic |
Definition at line 465 of file ray_cast.cpp.
|
inline |
Definition at line 281 of file ray_cast.cpp.
Reimplemented from Test.
Definition at line 344 of file ray_cast.cpp.
|
inlineoverridevirtual |
Reimplemented from Test.
Definition at line 294 of file ray_cast.cpp.
b2Body* RayCast::m_bodies[e_maxBodies] |
Definition at line 471 of file ray_cast.cpp.
int32 RayCast::m_bodyIndex |
Definition at line 470 of file ray_cast.cpp.
b2CircleShape RayCast::m_circle |
Definition at line 473 of file ray_cast.cpp.
float RayCast::m_degrees |
Definition at line 475 of file ray_cast.cpp.
b2EdgeShape RayCast::m_edge |
Definition at line 474 of file ray_cast.cpp.
int32 RayCast::m_mode |
Definition at line 476 of file ray_cast.cpp.
b2PolygonShape RayCast::m_polygons[4] |
Definition at line 472 of file ray_cast.cpp.