raisim::rscene::Object
struct · #include <raisim/Rscene.hpp>
A scene object (one object record).
Public attributes
id
std::string idNode id and scene node path; the path is used as the body name.
path
std::string pathassetId
std::string assetIdThe asset record this object was placed from, if any (see Asset).
shape
Shape shapePrimitive type.
transform
Transform transformWorld pose and scale.
radius
double radiusPrimitive radius (m), height (m) and mass (kg). A dynamic body needs a positive mass; addToWorld() uses 1 kg for a non-positive mass of other body modes.
height
double heightmass
double masscontactMaterial
std::string contactMaterialPhysics contact material name and render material id (Material::id).
material
std::string materialmaterialRemaps
std::vector<std::string> materialRemaps"source:target" pairs that replace a mesh's own materials by scene materials.
meshPath
std::string meshPathphysics mesh: collision mesh, else render mesh (Shape::Mesh)
renderMeshPath
std::string renderMeshPathdrawn mesh: render mesh, else collision mesh (Shape::Mesh)
visible
bool visibleFalse hides the body (appearance "hidden"); it still collides.
bodyMode
BodyMode bodyModeBody mode. VisualOnly objects have no physics body.
castShadow
bool castShadowShadow flag for a viewer.
collisionGroup
CollisionGroup collisionGroupCollision group and mask. A Ground uses only the mask.
collisionMask
CollisionGroup collisionMaskmeshCollision
MeshCollision meshCollisionCollision of a mesh file (not used for a .rasset descriptor).
coacd
CoacdSettings coacdcustomInertia
bool customInertiaCustom inertia (diagonal, kg m^2) and center of mass (m) of a dynamic mesh body.
inertiaDiagonal
Vec3 inertiaDiagonalcenterOfMass
Vec3 centerOfMassvisual
VisualSettings visualVisual settings for a viewer that draws the object itself.