class
BulletRigidSceneAn individual rigid scene instance implementing an interface with Bullet physics to enable dynamics. See btCollisionObject.
Contents
Base classes
- class BulletBase
- This class is intended to implement bullet-specific.
- class RigidScene
Constructors, destructors, conversion operators
-
BulletRigidScene(scene::
SceneNode* rigidBodyNode, std:: shared_ptr<btMultiBodyDynamicsWorld> bWorld, std:: shared_ptr<std:: map<const btCollisionObject*, int>> collisionObjToObjIds) - ~BulletRigidScene() virtual
- Destructor cleans up simulation structures for the object.
Public functions
-
auto getCollisionShapeAabb() const -> const Magnum::
Range3D override - Query the Aabb from bullet physics for the root compound shape of the rigid body in its local space. See btCompoundShape::
getAabb. - auto getFrictionCoefficient() const -> double override
- Get the scalar friction coefficient of the object. Only used for dervied dynamic implementations of RigidObject.
- auto getRestitutionCoefficient() const -> double override
- Get the scalar coefficient of restitution of the object. Only used for dervied dynamic implementations of RigidObject.
- void setFrictionCoefficient(const double frictionCoefficient) override
- Set the scalar friction coefficient of the object. See btCollisionObject::
setFriction. - void setRestitutionCoefficient(const double restitutionCoefficient) override
- Set the scalar coefficient of restitution of the object. See btCollisionObject::
setRestitution.
Private functions
-
auto initialization_LibSpecific(const assets::
ResourceManager& resMgr) -> bool override - Finalize the initialization of this RigidScene geometry. This holds bullet-specific functionality for scenes.
Function documentation
const Magnum:: Range3D esp:: physics:: BulletRigidScene:: getCollisionShapeAabb() const override
Query the Aabb from bullet physics for the root compound shape of the rigid body in its local space. See btCompoundShape::
Returns | The Aabb. |
---|
double esp:: physics:: BulletRigidScene:: getFrictionCoefficient() const override
Get the scalar friction coefficient of the object. Only used for dervied dynamic implementations of RigidObject.
Returns | The scalar friction coefficient of the object. |
---|
double esp:: physics:: BulletRigidScene:: getRestitutionCoefficient() const override
Get the scalar coefficient of restitution of the object. Only used for dervied dynamic implementations of RigidObject.
Returns | The scalar coefficient of restitution of the object. |
---|
void esp:: physics:: BulletRigidScene:: setFrictionCoefficient(const double frictionCoefficient) override
Set the scalar friction coefficient of the object. See btCollisionObject::
Parameters | |
---|---|
frictionCoefficient | The new scalar friction coefficient of the object. |
void esp:: physics:: BulletRigidScene:: setRestitutionCoefficient(const double restitutionCoefficient) override
Set the scalar coefficient of restitution of the object. See btCollisionObject::
Parameters | |
---|---|
restitutionCoefficient | The new scalar coefficient of restitution of the object. |
bool esp:: physics:: BulletRigidScene:: initialization_LibSpecific(const assets:: ResourceManager& resMgr) override private
Finalize the initialization of this RigidScene geometry. This holds bullet-specific functionality for scenes.
Parameters | |
---|---|
resMgr | Reference to resource manager, to access relevant components pertaining to the scene object |
Returns | true if initialized successfully, false otherwise. |