Release v0.30.0 (#880)

* Release v0.30.0

* fix 3d voxels example build
This commit is contained in:
Sébastien Crozet
2025-10-03 18:51:57 +02:00
committed by GitHub
parent 134f433903
commit 3ac5ed4491
12 changed files with 27 additions and 22 deletions

View File

@@ -228,7 +228,7 @@ pub fn init_world(testbed: &mut Testbed) {
let FeatureId::Face(id) = hit.feature else {
unreachable!()
};
let voxel_key = voxels.voxel_at_id(id);
let voxel_key = voxels.voxel_at_flat_id(id).unwrap();
let voxel_center = hit_collider.position() * voxels.voxel_center(voxel_key);
let voxel_size = voxels.voxel_size();
let hit_highlight = physics.colliders.get_mut(hit_highlight_handle).unwrap();