You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Ability to visually debug geometry visually:
-Visible 2D and 3D Shapes, Polygons, Tile collisions, etc. -Visible Navmesh and Navpoly -Visible collision contacts for 2D and 3D as a red point -Customizable colors in project settings
This commit is contained in:
@@ -454,6 +454,14 @@ AABB VisualServerRaster::mesh_get_custom_aabb(RID p_mesh) const {
|
||||
return rasterizer->mesh_get_custom_aabb(p_mesh);
|
||||
}
|
||||
|
||||
void VisualServerRaster::mesh_clear(RID p_mesh) {
|
||||
|
||||
ERR_FAIL_COND(!rasterizer->is_mesh(p_mesh));
|
||||
while(rasterizer->mesh_get_surface_count(p_mesh)) {
|
||||
rasterizer->mesh_remove_surface(p_mesh,0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* MULTIMESH */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user