namespace
BulletIntegrationIntegration with Bullet Physics.
Conversion of matrix and vector classes, wrappers for rigid body dynamics.
This library depends on the Bullet Physics library and is built if WITH_BULLET
is enabled when building Magnum Integration. To use this library with CMake, you need to request the Bullet
component of the MagnumIntegration
package and link to the MagnumIntegration::Bullet
target:
find_package(MagnumIntegration REQUIRED Bullet) # ... target_link_libraries(your-app MagnumIntegration::Bullet)
See Downloading and building integration libraries and Integration library usage with CMake for more information.
Classes
- class DebugDraw
- Bullet physics debug visualization.
- class MotionState
- Bullet Physics motion state.
Functions
-
auto convertShape(SceneGraph::
AbstractBasicObject3D <btScalar>& object, const btCollisionShape& shape, Shapes::ShapeGroup3D * shapes = nullptr) -> Shapes::AbstractShape3D * - Convert generic Bullet collision shape to Magnum shape.
-
auto convertShape(SceneGraph::
AbstractBasicObject3D <btScalar>& object, const btBoxShape& box, Shapes::ShapeGroup3D * shapes = nullptr) -> Shapes::Shape <Shapes::Box3D >* - Convert box Bullet collision shape to Magnum shape.
-
auto convertShape(SceneGraph::
AbstractBasicObject3D <btScalar>& object, const btSphereShape& sphere, Shapes::ShapeGroup3D * shapes = nullptr) -> Shapes::Shape <Shapes::Sphere3D >* - Convert sphere Bullet collision shape to Magnum shape.
-
auto operator<<(Debug& debug,
DebugDraw::
DebugMode value) -> Debug& - Debug output operator.
Function documentation
Shapes::AbstractShape3D * Magnum::BulletIntegration:: convertShape(SceneGraph::AbstractBasicObject3D <btScalar>& object,
const btCollisionShape& shape,
Shapes::ShapeGroup3D * shapes = nullptr)
Convert generic Bullet collision shape to Magnum shape.
Parameters | |
---|---|
object | Object the shape belongs to |
shape | Shape to convert |
shapes | Optional shape group to add the shape to |
Returns nullptr
if given shape is not supported.
Shapes::Shape <Shapes::Box3D >* Magnum::BulletIntegration:: convertShape(SceneGraph::AbstractBasicObject3D <btScalar>& object,
const btBoxShape& box,
Shapes::ShapeGroup3D * shapes = nullptr)
Convert box Bullet collision shape to Magnum shape.
See convertShape(SceneGraph::
Shapes::Shape <Shapes::Sphere3D >* Magnum::BulletIntegration:: convertShape(SceneGraph::AbstractBasicObject3D <btScalar>& object,
const btSphereShape& sphere,
Shapes::ShapeGroup3D * shapes = nullptr)
Convert sphere Bullet collision shape to Magnum shape.
See convertShape(SceneGraph::
Debug& Magnum::BulletIntegration:: operator<<(Debug& debug,
DebugDraw::DebugMode value)
Debug output operator.