#include <BulletOBBModel.h>
Public Attributes | |
sofa::core::objectmodel::Data< SReal > | margin |
Margin used for collision detection within bullet. More... | |
Protected Attributes | |
std::stack< btCollisionShape * > | _garbage |
btCompoundShape * | _bt_cshape |
![]() | |
btCollisionObject * | _bt_collision_object {nullptr} |
bool | _handled {false} |
Public Member Functions | |
SOFA_CLASS (SOFA_TEMPLATE(TBulletOBBModel, TDataTypes), SOFA_TEMPLATE(collisionobbcapsule::geometry::OBBCollisionModel, TDataTypes)) | |
virtual void | initBullet () |
virtual void | updateBullet () |
virtual void | computeBoundingTree (int) |
virtual | ~TBulletOBBModel () |
virtual void | init () |
virtual void | reinit () |
void | handleEvent (sofa::core::objectmodel::Event *ev) |
virtual void | setMargin (SReal m) |
![]() | |
BulletCollisionModel () | |
virtual | ~BulletCollisionModel () |
btCollisionObject * | getBtCollisionObject () |
const btCollisionObject * | getBtCollisionObject () const |
bool | handled () const |
void | setHandled (bool h) |
Protected Member Functions | |
TBulletOBBModel () | |
TBulletOBBModel (core::behavior::MechanicalState< DataTypes > *_mstate) | |
void | cleanGarbage () |
|
protected |
|
protected |
sofa::core::objectmodel::Data<SReal> sofa::component::collision::TBulletOBBModel< TDataTypes >::margin |
Margin used for collision detection within bullet.
|
inlinevirtual |
|
protected |
|
protected |
|
protected |
|
inlinevirtual |
void sofa::component::collision::TBulletOBBModel< DataTypes >::handleEvent | ( | sofa::core::objectmodel::Event * | ev | ) |
|
virtual |
|
virtual |
Inits bullet collision shapes from the sofa shapes.
Implements BulletCollisionModel.
|
virtual |
|
inlinevirtual |
sofa::component::collision::TBulletOBBModel< TDataTypes >::SOFA_CLASS | ( | SOFA_TEMPLATE(TBulletOBBModel< TDataTypes >, TDataTypes) | , |
SOFA_TEMPLATE(collisionobbcapsule::geometry::OBBCollisionModel, TDataTypes) | |||
) |
|
virtual |
Updates at each time step the bullet shapes from sofa shapes.
Implements BulletCollisionModel.