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

Function IsNodeValid

physics/physics.cpp:1770–1776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1768}
1769
1770bool IsNodeValid(int cell, float min_vert_dot) {
1771 if (TerrainNormals[MAX_TERRAIN_LOD - 1][cell].normal1.y >= min_vert_dot &&
1772 TerrainNormals[MAX_TERRAIN_LOD - 1][cell].normal2.y >= min_vert_dot)
1773 return true;
1774 else
1775 return false;
1776}
1777
1778bool PhysValidateGroundPath(object *obj, vector *s, int sroom, vector *e, int eroom, float rad, float min_vert_dot) {
1779 if (ROOMNUM_OUTSIDE(sroom)) {

Callers 1

PhysValidateGroundPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected