Magnum::BulletIntegration namespace

Integration 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, put FindMagnumIntegration.cmake into your modules/ directory, 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 PRIVATE MagnumIntegration::Bullet)

Additionally, if you're using Magnum as a CMake subproject, bundle the magnum-integration repository and do the following before calling find_package(). Using Bullet itself as a CMake subproject isn't tested at the moment, so you need to provide it as a system dependency and point CMAKE_PREFIX_PATH to its installation dir if necessary.

add_subdirectory(magnum-integration EXCLUDE_FROM_ALL)

This library provides routines for explicit conversion between Bullet and Magnum math types, in the Magnum/BulletIntegration/Integration.h header, see its documentation for more information. See also the Bullet Physics example, Downloading and building integration libraries and Integration library usage with CMake.


class DebugDraw
Bullet physics debug visualization.
class MotionState
Bullet Physics motion state.


auto operator<<(Debug& debug, DebugDraw::Mode value) -> Debug&
Debug output operator.

Function documentation

Debug& Magnum::BulletIntegration::operator<<(Debug& debug, DebugDraw::Mode value)

Debug output operator.