feat: add gravity node
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m52s

This commit is contained in:
2024-04-25 13:15:24 +02:00
parent 41ca2123ba
commit c1e6d141bf
14 changed files with 390 additions and 26 deletions

View File

@@ -33,7 +33,7 @@ pub fn extrude_path(input_path: PathData, res_x: usize) -> Vec<i32> {
let position_offset = i * res_x;
let pos = Vec3::new(path[i * 4], path[i * 4 + 1], path[i * 4 + 2]);
let thickness = path[i * 4 + 3];
let thickness = path[i * 4 + 3].max(0.000001);
// Get direction of the current segment
let segment_dir = (if i == 0 {