irr::newton::CollisionManager Class Reference

Class to check collision and raycasting. More...

#include <collision_manager.hpp>

Inheritance diagram for irr::newton::CollisionManager:

irr::newton::IrrNewt_Base List of all members.

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)

Detailed Description

Class to check collision and raycasting.


Constructor & Destructor Documentation

irr::newton::CollisionManager::CollisionManager ( NewtonWorld *  newton_world  )  [inline]


Member Function Documentation

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

Parameters:
line the line
Returns:
the returned intersection point. If returned_intersection_point.body==NULL no intersection point has been checked
See also:
irr::newton::IntersectionPoint

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

Parameters:
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
Returns:
true if a collision is cecked,false if not
See also:
irr::newton::IntersectionPoint

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

Parameters:
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
Returns:
none
See also:
irr::newton::IntersectionPoint


The documentation for this class was generated from the following file:
Generated on Fri Dec 15 16:58:33 2006 for IrrNewt by  doxygen 1.5.1-p1