raisim::World::SensorRayHit
struct · #include <raisim/World.hpp>
Surface found by rayTestSensor().
Public attributes
position
cpp
Vec<3> positionWorld-frame hit position (m).
normal
cpp
Vec<3> normalWorld-frame unit surface normal, facing the start of the ray.
distance
cpp
double distanceDistance from the start of the ray (m).
cosIncidence
cpp
double cosIncidenceAbsolute cosine of the angle between the ray and the normal.
object
cpp
const Object *objectObject hit.
localIdx
cpp
size_t localIdxLocal body index of the body hit within the object (0 for single bodies).
material
cpp
SensorMaterialProperties materialSensor material of the surface.
returns
cpp
bool returnsFalse at a surface that ends the ray without a return (a mirror outside the glint angle).