42 virtual void onAddedBody(
const string&
id, int32_t type,
bool enabled, uint16_t collisionTypeId,
const Transformations& transformations,
float restitution,
float friction,
float mass,
const Vector3& inertiaTensor, vector<BoundingVolume*>& boundingVolumes) = 0;
50 virtual void onRemovedBody(
const string&
id, int32_t type, uint16_t collisionTypeId) = 0;
Bounding volume interface.
World listener which is about notifying adding or removing bodies.
virtual void onRemovedBody(const string &id, int32_t type, uint16_t collisionTypeId)=0
Event fired when rigid body was removed.
virtual void onAddedBody(const string &id, int32_t type, bool enabled, uint16_t collisionTypeId, const Transformations &transformations, float restitution, float friction, float mass, const Vector3 &inertiaTensor, vector< BoundingVolume * > &boundingVolumes)=0
Event fired when rigid body was added.
virtual ~WorldListener()
Destructor.