|
| void | OnInitialize (const YAML::Node &config) override |
| | Initialization for the plugin. More...
|
| |
| void | AfterPhysicsStep (const Timekeeper &timekeeper) override |
| | Called when just after physics update to publish state. More...
|
| |
| void | BeginContact (b2Contact *contact) override |
| | A method that is called for all Box2D begin contacts. More...
|
| |
| void | EndContact (b2Contact *contact) override |
| | A method that is called for all Box2D end contacts. More...
|
| |
Public Member Functions inherited from flatland_server::ModelPlugin |
|
Model * | GetModel () |
| | Get model.
|
| |
| void | Initialize (const std::string &type, const std::string &name, Model *model, const YAML::Node &config) |
| | The method to initialize the ModelPlugin, required since Pluginlib require the class to have a default constructor. More...
|
| |
| bool | FilterContact (b2Contact *contact, Entity *&entity, b2Fixture *&this_fixture, b2Fixture *&other_fixture) |
| | Helper function check if this model is part of the contact, and extracts all the useful information. More...
|
| |
| bool | FilterContact (b2Contact *contact) |
| | Helper function check if this model is part of the contact. More...
|
| |
Public Member Functions inherited from flatland_server::FlatlandPlugin |
|
const PluginType | Type () |
| |
|
const std::string & | GetName () const |
| | Get plugin name.
|
| |
|
const std::string & | GetType () const |
| | Get type of plugin.
|
| |
| virtual void | BeforePhysicsStep (const Timekeeper &timekeeper) |
| | This method is called before the Box2D physics step. More...
|
| |
| virtual void | PreSolve (b2Contact *contact, const b2Manifold *oldManifold) |
| | A method that is called for Box2D presolve. More...
|
| |
| virtual void | PostSolve (b2Contact *contact, const b2ContactImpulse *impulse) |
| | A method that is called for Box2D postsolve. More...
|
| |
|
virtual | ~FlatlandPlugin ()=default |
| | Flatland plugin destructor.
|
| |
This class defines a bumper plugin that is used to publish the collisions states of bodies in the model