Skip to content

raisim::Projectile ​

struct · #include <raisim/Explosion.hpp>

A projectile in flight.

Public attributes ​

id ​

cpp
size_t id

Increasing identifier, unique within the world.

position ​

cpp
Vec<3> position

Position in the world frame (m).

velocity ​

cpp
Vec<3> velocity

Velocity in the world frame (m/s).

launchTime ​

cpp
double launchTime

World time of the launch (s).

launchPosition ​

cpp
Vec<3> launchPosition

Position and velocity at the launch, in the world frame (m, m/s).

launchVelocity ​

cpp
Vec<3> launchVelocity

properties ​

cpp
ProjectileProperties properties

The properties it was launched with.

RaiSim — physics for robotics and AI.