Skip to content

raisim::World::RayCastBody ​

struct · #include <raisim/World.hpp>

Collision geometry of one body, exactly as rayTest() and rayTestLidar() test it.

Public attributes ​

shape ​

cpp
const ::contact::Shape *shape

Shape type and dimensions; mesh and heightmap shapes reference data owned by the world.

position ​

cpp
Vec<3> position

Body origin in the world frame (m).

rotation ​

cpp
Mat<3, 3> rotation

Body-to-world rotation.

object ​

cpp
const Object *object

Owning object.

localIdx ​

cpp
size_t localIdx

Local body index within the object (the localId of rayTest()).

collisionGroup ​

cpp
std::uint64_t collisionGroup

Collision group bits of the body.

collisionMask ​

cpp
std::uint64_t collisionMask

Collision mask bits of the body.

RaiSim — physics for robotics and AI.