Skip to content

raisim::CollisionBodyHandle ​

struct · #include <raisim/collision/CollisionBody.hpp>

Internal: per-body collision data registered with the contact engine (shape, owner, material).

Public attributes ​

body ​

cpp
::contact::Body body

Contact-engine body data.

meshRef ​

cpp
std::shared_ptr<::contact::Mesh> meshRef

Contact mesh storage (keeps shape.mesh alive).

heightmapRef ​

cpp
std::shared_ptr<::contact::Heightmap> heightmapRef

Contact heightmap storage (keeps shape.heightmap alive).

objectType ​

cpp
ObjectType objectType

Object type owning this collision body.

bodyType ​

cpp
BodyType bodyType

Body type (dynamic, static, kinematic).

objectIndex ​

cpp
size_t objectIndex

Index of the owning object in the world.

localIdx ​

cpp
size_t localIdx

Local body index within the owning object.

trackSegment ​

cpp
std::int32_t trackSegment

Belt segment of a track of the owning articulated system, or -1 (see ArticulatedSystem::getTracks()).

name ​

cpp
std::string name

Collision body name.

material ​

cpp
std::string material

Material name for contact properties.

materialVersion ​

cpp
std::uint64_t materialVersion

Material version stamp for change detection.

materialId ​

cpp
unsigned int materialId

Material id assigned by the material manager.

neverCollideWith ​

cpp
std::vector<CollisionBodyHandle *> neverCollideWith

Collision bodies that should never collide with this one.

RaiSim — physics for robotics and AI.