Slope Lib

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

API / Library

Download (9 KB)

How do I install this?

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.

Reviews

Review

Do you recommend this mod?