19 m_cFloor.~btRigidBody();
21 btRigidBody::btRigidBodyConstructionInfo sConstructionInfo(0,
nullptr, &m_cFloorShape);
22 sConstructionInfo.m_friction = m_fFriction;
24 new (&m_cFloor) btRigidBody(sConstructionInfo);
25 m_cFloor.setUserPointer(
nullptr);
26 m_cFloor.getWorldTransform().setOrigin(m_cFloorOrigin);
38 m_cFloor.~btRigidBody();
40 btRigidBody::btRigidBodyConstructionInfo sConstructionInfo(0,
nullptr, &m_cFloorShape);
41 sConstructionInfo.m_friction = m_fFriction;
43 new (&m_cFloor) btRigidBody(sConstructionInfo);
44 m_cFloor.setUserPointer(
nullptr);
45 m_cFloor.getWorldTransform().setOrigin(m_cFloorOrigin);
63 "Michael Allwright [allsey87@gmail.com]",
65 "Inserts a floor into the 3D dynamics engine",
66 "For a description on how to use this plugin, please consult the documentation\n"
67 "for the dynamics3d physics engine plugin",
The namespace containing all the ARGoS related code.
REGISTER_DYNAMICS3D_PLUGIN(CDynamics3DFloorPlugin, "floor", "Michael Allwright [allsey87@gmail.com]", "1.0", "Inserts a floor into the 3D dynamics engine", "For a description on how to use this plugin, please consult the documentation\n" "for the dynamics3d physics engine plugin", "Usable")
void GetNodeAttributeOrDefault(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer, const T &t_default)
Returns the value of a node's attribute, or the passed default value.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
btMultiBodyDynamicsWorld & GetWorld()
btScalar GetDefaultFriction() const
virtual void Init(TConfigurationNode &t_tree)
CDynamics3DEngine * m_pcEngine