struct
#include <esp/physics/bullet/BulletBase.h>
SimulationContactResultCallback Implements Bullet physics btCollisionWorld::
Stores the results of a collision check within the world.
Constructors, destructors, conversion operators
- SimulationContactResultCallback() defaulted
- Constructor.
Public functions
- auto addSingleResult(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap, int partId0, int index0, const btCollisionObjectWrapper* colObj1Wrap, int partId1, int index1) -> btScalar override
- Called when a contact is detected.
Public variables
- bool bCollision
- Set when a contact is detected.
Function documentation
btScalar esp:: physics:: SimulationContactResultCallback:: addSingleResult(btManifoldPoint& cp,
const btCollisionObjectWrapper* colObj0Wrap,
int partId0,
int index0,
const btCollisionObjectWrapper* colObj1Wrap,
int partId1,
int index1) override
Called when a contact is detected.
Parameters | |
---|---|
cp | Contains detailed information about the contact point being added. |
colObj0Wrap | |
partId0 | |
index0 | |
colObj1Wrap | |
partId1 | |
index1 |
Sets a collision flag on every detected collision. Can be updated to do more.