Go to the source code of this file.
Functions | |
s32 | test_ray_zones (f32 startX, f32 startY, f32 startZ, f32 dirX, f32 dirY, f32 dirZ, f32 *hitX, f32 *hitY, f32 *hitZ, f32 *hitDepth, f32 *nx, f32 *ny, f32 *nz) |
s32 | test_ray_colliders (s32 ignoreFlags, f32 startX, f32 startY, f32 startZ, f32 dirX, f32 dirY, f32 dirZ, f32 *hitX, f32 *hitY, f32 *hitZ, f32 *hitDepth, f32 *hitNx, f32 *hitNy, f32 *hitNz) |
s32 | test_ray_entities (f32 startX, f32 startY, f32 startZ, f32 dirX, f32 dirY, f32 dirZ, f32 *hitX, f32 *hitY, f32 *hitZ, f32 *hitDepth, f32 *hitNx, f32 *hitNy, f32 *hitNz) |
Test a general ray from a given starting position and direction against all entities. | |
s32 test_ray_zones | ( | f32 | startX, |
f32 | startY, | ||
f32 | startZ, | ||
f32 | dirX, | ||
f32 | dirY, | ||
f32 | dirZ, | ||
f32 * | hitX, | ||
f32 * | hitY, | ||
f32 * | hitZ, | ||
f32 * | hitDepth, | ||
f32 * | nx, | ||
f32 * | ny, | ||
f32 * | nz ) |
Definition at line 866 of file collision.c.
s32 test_ray_colliders | ( | s32 | ignoreFlags, |
f32 | startX, | ||
f32 | startY, | ||
f32 | startZ, | ||
f32 | dirX, | ||
f32 | dirY, | ||
f32 | dirZ, | ||
f32 * | hitX, | ||
f32 * | hitY, | ||
f32 * | hitZ, | ||
f32 * | hitDepth, | ||
f32 * | hitNx, | ||
f32 * | hitNy, | ||
f32 * | hitNz ) |
Definition at line 768 of file collision.c.
s32 test_ray_entities | ( | f32 | startX, |
f32 | startY, | ||
f32 | startZ, | ||
f32 | dirX, | ||
f32 | dirY, | ||
f32 | dirZ, | ||
f32 * | hitX, | ||
f32 * | hitY, | ||
f32 * | hitZ, | ||
f32 * | hitDepth, | ||
f32 * | hitNx, | ||
f32 * | hitNy, | ||
f32 * | hitNz ) |
Test a general ray from a given starting position and direction against all entities.
If one is hit, returns the position and normal of the hit and the length along the ray on the output params. All output params are invalid when a value of NO_COLLIDER
is returned.
startX | origin x position of the ray | |
startY | origin y position of the ray | |
startZ | origin z position of the ray | |
dirX | normalized x direction of the ray | |
dirY | normalized y direction of the ray | |
dirZ | normalized z direction of the ray | |
[out] | hitX | normalized x position of the hit |
[out] | hitY | normalized y position of the hit |
[out] | hitZ | normalized z position of the hit |
[in,out] | hitDepth | as input, maximum length of the ray; as output, distance along the ray of the hit |
[out] | hitNx | x normal direction of the hit |
[out] | hitNy | y normal direction of the hit |
[out] | hitNz | z normal direction of the hit |
NO_COLLIDER
is none is hit Definition at line 947 of file collision.c.