esp::physics::SimulationContactResultCallback struct

Implements Bullet physics btCollisionWorld::ContactResultCallback interface.

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.