bool TA::DynamicObject::TestLineForCollision
(
|
const Vec3 &
|
v3Start,
|
|
const Vec3 &
|
v3Normal,
|
|
float
|
fLength,
|
|
Collision &
|
collision
|
) |
const
|
|
|
Call this function to find the first intersection between a line and the object.
To test against all objects in the simulation use TA::Physics::TestLineForCollision. - Warning:
- The parameter collision must be properly initialised before calling this function. The parameter collision may already contain a collision. It is only altered if a closer collision is found.
- Returns:
true if a collision is found, false otherwise.
- Parameters:
-
| v3Start |
| | Line start point. |
| v3Normal |
| | Line direction. |
| fLength |
| | Line length. |
| collision |
| | The result. Must be initialised prior to calling this function. |
|
|