Skip to content

How are you implementing Holes in the Terrain 3D 0.9 beta? #279

Closed Answered by TokisanGames
Chevifier asked this question in Questions
Discussion options

You must be logged in to vote

The video is for usage, not how it works, otherwise it would be 4-8 hours.

Holes in Physics

float hole_const = NAN;
if (ProjectSettings::get_singleton()->get_setting("physics/3d/physics_engine") == "JoltPhysics3D") {
hole_const = __FLT_MAX__;
}

map_data[index] = (Util::is_hole(cmap->get_pixel(x, z).r)) ? hole_const : map->get_pixel(x, z).r;

Holes in mesh

bool hole = bool(control >>2u & 0x1u);
if ( hole || (_background_mode == 0 && v_region.z < 0) ) {
VER…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Chevifier
Comment options

@TokisanGames
Comment options

@TokisanGames
Comment options

Answer selected by Chevifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants