coastline 0.0.4
Loading...
Searching...
No Matches
terrain.h File Reference
#include "common/vecmath.h"
Include dependency graph for terrain.h:

Go to the source code of this file.

Functions

float RaycastTerrainHeight (Vec3f *position)
 Find the nearest track-triangle intersection within two units of position on the vertical axis.

Function Documentation

◆ RaycastTerrainHeight()

float RaycastTerrainHeight ( Vec3f * position)

Find the nearest track-triangle intersection within two units of position on the vertical axis.

Returns
Signed distance to the nearest hit, or 100 when no triangle qualifies.
Ghidra address:
BRD3D: 0x1006f310
Ghidra address:
BRGlide: 0x100682c0