Skip to content

raisim::GranularSystem::BoxOptions ​

struct · #include <raisim/object/granular/GranularSystem.hpp>

Parameters of World::addGranularBox(): equal particles on a regular grid inside an axis-aligned box.

Public attributes ​

minCorner ​

cpp
Vec<3> minCorner

Minimum corner of the box in the world frame (m).

maxCorner ​

cpp
Vec<3> maxCorner

Maximum corner of the box in the world frame (m).

radius ​

cpp
double radius

Particle radius (m).

spacing ​

cpp
double spacing

Grid spacing between particle centers (m).

maxParticles ​

cpp
size_t maxParticles

Maximum number of particles; zero means unlimited.

velocity ​

cpp
Vec<3> velocity

Initial linear velocity (m/s).

angularVelocity ​

cpp
Vec<3> angularVelocity

Initial angular velocity (rad/s).

materialId ​

cpp
uint16_t materialId

Particle material id (see setParticleMaterial()).

fixed ​

cpp
bool fixed

Create fixed (static) particles.

RaiSim — physics for robotics and AI.