MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / is_long_xz_ray

Function is_long_xz_ray

physics/findintersection.cpp:2456–2462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2454#define MIN_LONG_RAY (TERRAIN_SIZE * 20.0)
2455
2456inline bool is_long_xz_ray(fvi_query *fq) {
2457 if ((fabs(fq->p0->x - fq->p1->x) > MIN_LONG_RAY) || (fabs(fq->p0->z - fq->p1->z) > MIN_LONG_RAY)) {
2458 return true;
2459 } else {
2460 return false;
2461 }
2462}
2463
2464void check_ceiling() {
2465 vector hit_point;

Callers 1

fvi_FindIntersectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected