#include <collision_manager.hpp>
Inheritance diagram for irr::newton::CollisionManager:
Public Member Functions | |
CollisionManager (NewtonWorld *newton_world) | |
irr::newton::IntersectionPoint | getCollisionFirstPoint (irr::core::line3d< irr::f32 > line) |
bool | getCollisionPoint (irr::newton::Body *body, irr::core::line3d< irr::f32 > line, irr::newton::IntersectionPoint &out) |
void | getCollisionPoints (irr::core::line3d< irr::f32 > line, irr::core::array< IntersectionPoint > *intersect_points) |
irr::newton::CollisionManager::CollisionManager | ( | NewtonWorld * | newton_world | ) | [inline] |
irr::newton::IntersectionPoint irr::newton::CollisionManager::getCollisionFirstPoint | ( | irr::core::line3d< irr::f32 > | line | ) |
intersects a line with all bodies and get the first intersection point checked with the first body
line | the line |
bool irr::newton::CollisionManager::getCollisionPoint | ( | irr::newton::Body * | body, | |
irr::core::line3d< irr::f32 > | line, | |||
irr::newton::IntersectionPoint & | out | |||
) |
intersects a line with a body and get the first intersection point
body | the body with the line intersects | |
line | the line | |
out | the returned intersection point. After call this function this parameters will contain the intersection point |
void irr::newton::CollisionManager::getCollisionPoints | ( | irr::core::line3d< irr::f32 > | line, | |
irr::core::array< IntersectionPoint > * | intersect_points | |||
) |
intersects a line with all bodies and get all intersection points
line | the line | |
intersect_points | an array of intersection points. After call this function this array will contain all intersection points. An empty array indicates a non collision cecked |