TDME2 1.9.121
|
Collision response. More...
#include <tdme/engine/physics/CollisionResponse.h>
Public Member Functions | |
CollisionResponse () | |
Public constructor. More... | |
void | reset () |
Reset. More... | |
CollisionResponse_Entity * | addResponse (float distance) |
Adds a collision response entity. More... | |
int32_t | getEntityCount () |
CollisionResponse_Entity * | getSelectedEntity () |
CollisionResponse_Entity * | getEntity (int32_t idx) |
Selects entity at given index. More... | |
CollisionResponse * | selectEntity (int32_t idx) |
Selects entity at given index. More... | |
bool | hasEntitySelected () |
float | getDistance () |
bool | hasPenetration () |
float | getPenetration () |
const Vector3 * | getNormal () |
const vector< Vector3 > & | getHitPoints () |
int32_t | getHitPointCount () |
Vector3 * | getHitPoint (int32_t idx) |
Get hit point of given index. More... | |
Private Attributes | |
vector< CollisionResponse_Entity > | entities |
CollisionResponse_Entity * | selectedEntity { nullptr } |
vector< Vector3 > | fallbackHitPointsVector |
Static Private Attributes | |
static constexpr int32_t | HITPOINT_COUNT { 30 } |
Friends | |
class | CollisionResponse_Entity |
class | CollisionDetection |
class | World |
|
inline |
Public constructor.
Definition at line 43 of file CollisionResponse.h.
|
inline |
Adds a collision response entity.
distance | distance |
Definition at line 59 of file CollisionResponse.h.
|
inline |
Definition at line 115 of file CollisionResponse.h.
|
inline |
Selects entity at given index.
idx | idx |
Definition at line 89 of file CollisionResponse.h.
|
inline |
Definition at line 73 of file CollisionResponse.h.
|
inline |
Get hit point of given index.
i | i |
Definition at line 165 of file CollisionResponse.h.
|
inline |
Definition at line 155 of file CollisionResponse.h.
|
inline |
Definition at line 147 of file CollisionResponse.h.
|
inline |
Definition at line 139 of file CollisionResponse.h.
|
inline |
Definition at line 131 of file CollisionResponse.h.
|
inline |
Definition at line 80 of file CollisionResponse.h.
|
inline |
Definition at line 108 of file CollisionResponse.h.
|
inline |
Definition at line 123 of file CollisionResponse.h.
|
inline |
Reset.
Definition at line 49 of file CollisionResponse.h.
|
inline |
Selects entity at given index.
idx | idx |
Definition at line 99 of file CollisionResponse.h.
|
friend |
Definition at line 30 of file CollisionResponse.h.
|
friend |
Definition at line 29 of file CollisionResponse.h.
|
friend |
Definition at line 31 of file CollisionResponse.h.
|
private |
Definition at line 35 of file CollisionResponse.h.
|
private |
Definition at line 37 of file CollisionResponse.h.
|
staticconstexprprivate |
Definition at line 34 of file CollisionResponse.h.
|
private |
Definition at line 36 of file CollisionResponse.h.