mirror of
https://github.com/eliasstepanik/voxel-simulation.git
synced 2026-01-10 05:18:30 +00:00
.
This commit is contained in:
parent
93dcdb3379
commit
c511e824d6
@ -119,7 +119,7 @@ pub fn voxel_system(
|
||||
let hit_position = Vec3::new(hit_x as f32, hit_y as f32, hit_z as f32);
|
||||
let epsilon = voxel_size * 0.1;
|
||||
let offset = hit_position + normal * Vec3::splat(epsilon);
|
||||
octree.insert_sphere(offset, EDIT_SPHERE_RADIUS, Voxel::grass_block());
|
||||
octree.insert_sphere(offset, EDIT_SPHERE_RADIUS, Voxel::random_sides());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user