Skip to content

raisim::rscene::Physics ​

struct · #include <raisim/Rscene.hpp>

Solver settings from the time_step, gravity, solver and contact_material records. applyPhysics() applies them.

Public attributes ​

timeStep ​

cpp
double timeStep

Simulation time step (s).

gravity ​

cpp
Vec3 gravity

Gravity in the world frame (m/s^2).

solverIterations ​

cpp
int solverIterations

Solver iteration count. Used as contactMaxIterations unless the file sets a non-default contact value.

solverTolerance ​

cpp
double solverTolerance

solverTolerance: used as contactThreshold unless the file sets a non-default contact value. erp, erp2: passed to World::setERP().

erp ​

cpp
double erp

erp2 ​

cpp
double erp2

defaultFriction ​

cpp
double defaultFriction

Default material (friction, restitution, restitution threshold in m/s), passed to World::setDefaultMaterial().

defaultRestitution ​

cpp
double defaultRestitution

defaultRestitutionThreshold ​

cpp
double defaultRestitutionThreshold

defaultStaticFriction ​

cpp
double defaultStaticFriction

Default static friction coefficient and its transition speed (m/s).

defaultStaticFrictionVelocityThreshold ​

cpp
double defaultStaticFrictionVelocityThreshold

defaultRollingFriction ​

cpp
double defaultRollingFriction

Default rolling and spinning friction coefficients.

defaultSpinningFriction ​

cpp
double defaultSpinningFriction

contactAlphaInit ​

cpp
double contactAlphaInit

Contact solver alphas, passed to World::setContactSolverParam() (which ignores them).

contactAlphaMin ​

cpp
double contactAlphaMin

contactAlphaDecay ​

cpp
double contactAlphaDecay

contactMaxIterations ​

cpp
int contactMaxIterations

Maximum contact solver iterations, passed to World::setContactSolverParam().

contactThreshold ​

cpp
double contactThreshold

Contact solver termination threshold, passed to World::setContactSolverParam().

contact ​

cpp
::contact::ContactSettings contact

Contact detection settings, passed to World::setContactSettings().

sleepingEnabled ​

cpp
bool sleepingEnabled

See World::setSleepingEnabled().

sleepingLinearVelocityThreshold ​

cpp
double sleepingLinearVelocityThreshold

Sleeping speed thresholds (m/s, rad/s), see World::setSleepingParameters().

sleepingAngularVelocityThreshold ​

cpp
double sleepingAngularVelocityThreshold

sleepingQuietSteps ​

cpp
int sleepingQuietSteps

Consecutive quiet steps before sleeping, see World::setSleepingParameters().

worldTime ​

cpp
double worldTime

Initial world time (s).

fixedContactSolverIterationOrder ​

cpp
bool fixedContactSolverIterationOrder

See World::setContactSolverIterationOrder().

contactMaterials ​

cpp
std::vector<ContactMaterial> contactMaterials

Material pairs, applied in file order after the default material.

RaiSim — physics for robotics and AI.