mirror of
https://github.com/eliasstepanik/voxel-simulation.git
synced 2026-01-10 05:18:30 +00:00
Fix voxel creation calls
This commit is contained in:
parent
430a933e8b
commit
eecd786ccb
@ -33,7 +33,10 @@ pub fn voxel_system(
|
||||
|
||||
if keyboard_input.just_pressed(KeyCode::KeyQ) && window.cursor_options.visible == false{
|
||||
for mut octree in octree_query.iter_mut() {
|
||||
octree.insert(transform.translation, Voxel::new(Color::srgb(1.0, 0.0, 0.0)));
|
||||
octree.insert(
|
||||
transform.translation,
|
||||
Voxel::new(Color::srgb(1.0, 0.0, 0.0), [0; 6]),
|
||||
);
|
||||
}
|
||||
}
|
||||
if keyboard_input.just_pressed(KeyCode::F4){
|
||||
@ -111,7 +114,7 @@ pub fn voxel_system(
|
||||
// Insert the new voxel
|
||||
octree.insert(
|
||||
offset_position,
|
||||
Voxel::new(Color::srgb(1.0, 0.0, 0.0)),
|
||||
Voxel::new(Color::srgb(1.0, 0.0, 0.0), [0; 6]),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user