Mod
Slope Lib
A lib that calculates the average 3d slope of surrounding nodes from a position and raduis.
This is a library that provides one function:
get_3d_slope.get_slope(pos, radius)
--`pos` the position from which to calculate the surrounding slope
--`radius` is a float that determines the radius of the examined nodes from which the calculation is made
This function will return a downward or zero vector that is calculated by taking the average downward directions of all scanned nodes.
Links
- Source: https://github.com/epCode/get_3d_slope
- Issues: https://github.com/epCode/get_3d_slope/issues
- Original ContentDB page: content.luanti.org/packages/epCode/get_3d_slope/
License
LGPL-3.0-only
Development state
MAINTENANCE_ONLY
| Version | Date | Min engine | Size | Download |
|---|---|---|---|---|
| 1.0.0 | 2023-09-28 20:33:21 | 9.2 KB | Download |