feat: some tweaks
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m41s

This commit is contained in:
2024-05-03 01:33:55 +02:00
parent 4c235fe24a
commit cf5b36490f
8 changed files with 235 additions and 211 deletions

View File

@@ -17,13 +17,6 @@
"options": ["x", "y", "z"],
"description": "Along which axis should we rotate?"
},
"spread": {
"type": "boolean",
"internal": true,
"hidden": true,
"value": true,
"description": "If multiple objects are connected, should we rotate them as one or spread them?"
},
"angle": {
"type": "float",
"min": 0,
@@ -31,6 +24,13 @@
"step": 0.05,
"value": 0,
"description": "Rotation angle"
},
"spread": {
"type": "boolean",
"internal": true,
"hidden": true,
"value": true,
"description": "If multiple objects are connected, should we rotate them as one or spread them?"
}
}
}

View File

@@ -18,8 +18,7 @@ pub fn execute(input: &[i32]) -> Vec<i32> {
let plants = split_args(args[0]);
let axis = evaluate_int(args[1]); // 0 =x, 1 = y, 2 = z
let spread = evaluate_int(args[2]);
let angle = evaluate_float(args[3]);
let spread = evaluate_int(args[3]);
let output: Vec<Vec<i32>> = plants
.iter()
@@ -34,7 +33,7 @@ pub fn execute(input: &[i32]) -> Vec<i32> {
let path = wrap_path_mut(&mut path_data);
let length = path.get_length() as f64;
let angle = evaluate_float(args[2]);
let origin = [path.points[0], path.points[1], path.points[2]];