Skip to content

raisim::RayCollisionItem ​

class · #include <raisim/rayCollision.hpp>

One ray hit returned by World::rayTest().

Public member functions ​

getObject ​

cpp
const Object *getObject() const

Returns The object hit by the ray, or nullptr if none.

getPosition ​

cpp
const Eigen::Vector3d &getPosition() const

Returns World-frame contact position for the hit.

getCollisionBody ​

cpp
CollisionBodyHandlePtr getCollisionBody() const

Returns Collision body handle for the hit, if available.

RaiSim — physics for robotics and AI.