True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

void TA::Physics::TestLineForCollision (
const Vec3 &   v3Start,
const Vec3 &   v3End,
Collision &   collision,
u32   nFlags = FLAG_ALL_OBJECTS
 

Call this function to test a line segment for intersection with all geometry added to the physics simulation. The line is represented by a start point and an end point. Only the closest collision point is returned. Call TA::Collision::CollisionOccurred to determine if an intersection was found.

Note:
This function can be very slow for long lines so use sparingly. Also note that axis aligned line segments are more efficient.
See also:
TA::Physics::TestLineForCollision(const Vec3& v3Start, const Vec3& v3Normal, float fLength, Collision& collision, u32 nFlags).
Parameters:
collision
A collision object where to store the result. The contents of collision will be overwritten.
v3Start
The start point of the line.
v3End
The end point of the line.
nFlags
Either a combination of FLAG_DYNAMIC_OBJECTS, FLAG_STATIC_OBJECTS, or one of FLAG_ALL_OBJECTS and FLAG_ALL_NON_DYNAMIC_OBJECTS.



© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.