You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Refactor Jolt-related project settings to only be loaded as needed
This commit is contained in:
@@ -55,7 +55,7 @@ JPH::ShapeRefC JoltConvexPolygonShape3D::_build() const {
|
||||
}
|
||||
|
||||
const float min_half_extent = _calculate_aabb().get_shortest_axis_size() * 0.5f;
|
||||
const float actual_margin = MIN(margin, min_half_extent * JoltProjectSettings::get_collision_margin_fraction());
|
||||
const float actual_margin = MIN(margin, min_half_extent * JoltProjectSettings::collision_margin_fraction);
|
||||
|
||||
const JPH::ConvexHullShapeSettings shape_settings(jolt_vertices, actual_margin);
|
||||
const JPH::ShapeSettings::ShapeResult shape_result = shape_settings.Create();
|
||||
|
||||
Reference in New Issue
Block a user