raisim::RayCollisionItem
class · #include <raisim/rayCollision.hpp>
One ray hit returned by World::rayTest().
Public member functions
getObject
cpp
const Object *getObject() constReturns The object hit by the ray, or nullptr if none.
getPosition
cpp
const Eigen::Vector3d &getPosition() constReturns World-frame contact position for the hit.
getNormal
cpp
const Eigen::Vector3d &getNormal() constReturns World-frame unit normal of the surface hit, pointing toward the side the ray came from.
getCollisionBody
cpp
CollisionBodyHandlePtr getCollisionBody() constReturns Collision body handle for the hit, if available.