« Back to search

Mod

Slope Lib

by epCode · score 151.0 · license: LGPL-3.0-only

Slope Lib

Download latest release

A lib that calculates the average 3d slope of surrounding nodes from a position and raduis.

library

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.