struct
#include <esp/physics/bullet/BulletBase.h>
SimulationContactResultCallback Implements Bullet physics btCollisionWorld::
Contents
Stores the results of a collision check within the world.
Constructors, destructors, conversion operators
- SimulationContactResultCallback()
- Constructor.
Public functions
-
auto addSingleResult(CORRADE_
UNUSED btManifoldPoint& cp, CORRADE_ UNUSED const btCollisionObjectWrapper* colObj0Wrap, CORRADE_ UNUSED int partId0, CORRADE_ UNUSED int index0, CORRADE_ UNUSED const btCollisionObjectWrapper* colObj1Wrap, CORRADE_ UNUSED int partId1, CORRADE_ UNUSED 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(CORRADE_ UNUSED btManifoldPoint& cp,
CORRADE_ UNUSED const btCollisionObjectWrapper* colObj0Wrap,
CORRADE_ UNUSED int partId0,
CORRADE_ UNUSED int index0,
CORRADE_ UNUSED const btCollisionObjectWrapper* colObj1Wrap,
CORRADE_ UNUSED int partId1,
CORRADE_ UNUSED 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.