mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-11 20:35:08 +01:00
Fix broken Terrain::raycast when it falls back to isolevel channel
This commit is contained in:
parent
0f378fe218
commit
fe37ed3674
@ -866,8 +866,8 @@ static bool _raycast_binding_predicate(Vector3i pos, void *context_ptr) {
|
||||
if (voxel.is_transparent() == false)
|
||||
return true;
|
||||
|
||||
int v1 = map->get_voxel(pos, Voxel::CHANNEL_ISOLEVEL);
|
||||
return v1 - 128 >= 0;
|
||||
float v1 = map->get_voxel_f(pos.x, pos.y, pos.z, Voxel::CHANNEL_ISOLEVEL);
|
||||
return v1 < 0;
|
||||
}
|
||||
|
||||
void VoxelTerrain::_make_area_dirty_binding(AABB aabb) {
|
||||
|
Loading…
Reference in New Issue
Block a user