mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
Disable offsetting in PandemoniumNavigationMeshGenerator for 2d, as it seems to be bugged.
This commit is contained in:
parent
f8ae128f72
commit
99207066c5
@ -410,6 +410,8 @@ void PandemoniumNavigationMeshGenerator::_static_bake_2d_from_source_geometry_da
|
||||
|
||||
path_solution = Difference(traversable_polygon_paths, obstruction_polygon_paths, clipper_fillrule);
|
||||
|
||||
// Seems to be bugged when dealing with 2d (likely because of the scales)
|
||||
/*
|
||||
JoinType clipper_jointype = JoinType::Square;
|
||||
|
||||
switch (p_navigation_polygon->get_offsetting_jointype()) {
|
||||
@ -432,6 +434,7 @@ void PandemoniumNavigationMeshGenerator::_static_bake_2d_from_source_geometry_da
|
||||
if (agent_radius_offset > 0.0) {
|
||||
path_solution = InflatePaths(path_solution, -agent_radius_offset, clipper_jointype, EndType::Polygon);
|
||||
}
|
||||
*/
|
||||
//path_solution = RamerDouglasPeucker(path_solution, 0.025); //
|
||||
|
||||
Vector<PoolVector<Vector2>> new_baked_outlines;
|
||||
|
Loading…
Reference in New Issue
Block a user