Skip to content

raisim::Rasset::InstanceOptions ​

struct · #include <raisim/Rasset.hpp>

Placement and physics options of one instance (see instantiate()).

Public attributes ​

position ​

cpp
std::array<double, 3> position

Instance position in the world frame (m).

quaternion ​

cpp
std::array<double, 4> quaternion

Instance orientation (w, x, y, z); must be a unit quaternion.

scale ​

cpp
double scale

Uniform scale applied to collider sizes and offsets; must be positive.

bodyType ​

cpp
BodyType bodyType

Body type of every created body.

mass ​

cpp
double mass

Mass (kg) given to each created body; must be positive.

name ​

cpp
std::string name

Name of the first body; further bodies are named "\<name\> collision \<i\>". Empty leaves names unset.

material ​

cpp
std::string material

Contact material of every created body.

collisionGroup ​

cpp
CollisionGroup collisionGroup

Collision group of every created body.

collisionMask ​

cpp
CollisionGroup collisionMask

Collision mask of every created body.

RaiSim — physics for robotics and AI.