|
Fx2D
A C++20 2D rigid-body physics engine
|
Contact data produced by the narrow phase and solver. More...
#include <Solver.h>
Collaboration diagram for FxContact:Public Member Functions | |
| FxContact ()=default | |
| FxContact (bool valid) | |
| bool | is_valid (bool full_check=true) const |
| void | set_valid (bool valid) |
Public Attributes | |
| size_t | count = 0 |
| FxVec2f | position [2] = {{0.0f, 0.0f}, {0.0f, 0.0f}} |
| FxVec2f | normal {0.0f, 0.0f} |
| float | penetration_depth = FxInfinityf |
| FxEntity * | entity1 = nullptr |
| FxEntity * | entity2 = nullptr |
| float | jn_accumulated [2] = {0.0f, 0.0f} |
| float | jt_accumulated [2] = {0.0f, 0.0f} |
| float | jn_warm [2] = {0.0f, 0.0f} |
| float | jt_warm [2] = {0.0f, 0.0f} |
| int32_t | body1 = -1 |
| int32_t | body2 = -1 |
| uint64_t | pair_key = 0 |
| uint32_t | cache_slot = kNoCacheSlot |
Static Public Attributes | |
| static constexpr uint32_t | kNoCacheSlot = 0xffffffffu |
|
default |
|
inline |
| uint32_t FxContact::cache_slot = kNoCacheSlot |
|
staticconstexpr |
| FxVec2f FxContact::position[2] = {{0.0f, 0.0f}, {0.0f, 0.0f}} |