fix: space nodes further apart by adjusting x position offset

This commit is contained in:
2025-10-02 12:27:23 +02:00
parent dce279d1b2
commit 5cc806a8dd

View File

@@ -462,7 +462,7 @@ fn main() {
{
let mut pin = root.as_mut();
let node = unsafe { pin.get_unchecked_mut() };
node.position = glm::vec3(heading.x, 0.0, heading.z);
node.position = glm::vec3(heading.x + (i as f32) * 5.0, 0.0, heading.z);
node.rotation = glm::vec3(heading.pitch, heading.yaw, heading.roll);
}
// Update rotors: child index 2 = main rotor, 3 = tail rotor