Skip to content

raisim::rscene::Object ​

struct · #include <raisim/Rscene.hpp>

A scene object (one object record).

Public attributes ​

id ​

cpp
std::string id

Node id and scene node path; the path is used as the body name.

path ​

cpp
std::string path

assetId ​

cpp
std::string assetId

The asset record this object was placed from, if any (see Asset).

shape ​

cpp
Shape shape

Primitive type.

transform ​

cpp
Transform transform

World pose and scale.

radius ​

cpp
double radius

Primitive 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 ​

cpp
double height

mass ​

cpp
double mass

contactMaterial ​

cpp
std::string contactMaterial

Physics contact material name and render material id (Material::id).

material ​

cpp
std::string material

materialRemaps ​

cpp
std::vector<std::string> materialRemaps

"source:target" pairs that replace a mesh's own materials by scene materials.

meshPath ​

cpp
std::string meshPath

physics mesh: collision mesh, else render mesh (Shape::Mesh)

renderMeshPath ​

cpp
std::string renderMeshPath

drawn mesh: render mesh, else collision mesh (Shape::Mesh)

visible ​

cpp
bool visible

False hides the body (appearance "hidden"); it still collides.

bodyMode ​

cpp
BodyMode bodyMode

Body mode. VisualOnly objects have no physics body.

castShadow ​

cpp
bool castShadow

Shadow flag for a viewer.

collisionGroup ​

cpp
CollisionGroup collisionGroup

Collision group and mask. A Ground uses only the mask.

collisionMask ​

cpp
CollisionGroup collisionMask

meshCollision ​

cpp
MeshCollision meshCollision

Collision of a mesh file (not used for a .rasset descriptor).

coacd ​

cpp
CoacdSettings coacd

customInertia ​

cpp
bool customInertia

Custom inertia (diagonal, kg m^2) and center of mass (m) of a dynamic mesh body.

inertiaDiagonal ​

cpp
Vec3 inertiaDiagonal

centerOfMass ​

cpp
Vec3 centerOfMass

visual ​

cpp
VisualSettings visual

Visual settings for a viewer that draws the object itself.

RaiSim — physics for robotics and AI.