raisim::CollisionBodyHandle
struct · #include <raisim/collision/CollisionBody.hpp>
Internal: per-body collision data registered with the contact engine (shape, owner, material).
Public attributes
body
::contact::Body bodyContact-engine body data.
meshRef
std::shared_ptr<::contact::Mesh> meshRefContact mesh storage (keeps shape.mesh alive).
heightmapRef
std::shared_ptr<::contact::Heightmap> heightmapRefContact heightmap storage (keeps shape.heightmap alive).
objectType
ObjectType objectTypeObject type owning this collision body.
bodyType
BodyType bodyTypeBody type (dynamic, static, kinematic).
objectIndex
size_t objectIndexIndex of the owning object in the world.
localIdx
size_t localIdxLocal body index within the owning object.
trackSegment
std::int32_t trackSegmentBelt segment of a track of the owning articulated system, or -1 (see ArticulatedSystem::getTracks()).
materialId
unsigned int materialIdMaterial id assigned by the material manager.
name
std::string nameCollision body name.
sourceLink
std::string sourceLinkOriginal articulated-system link, retained when fixed bodies are merged.
sourceName
std::string sourceNameDeclared URDF collision name; empty for unnamed geometries.
material
std::string materialMaterial name for contact properties.
materialVersion
std::uint64_t materialVersionMaterial version stamp for change detection.
neverCollideWith
std::vector<CollisionBodyHandle *> neverCollideWithCollision bodies that should never collide with this one.
fluid
CollisionBodyFluidSlot fluidHow fluids act on this body (see World::setFluidCoefficients()).