Skip to content

Commit

Permalink
Documented that the points supplied don't need to be the convex hull …
Browse files Browse the repository at this point in the history
…vertices

See #1432
  • Loading branch information
jrouwe committed Jan 28, 2025
1 parent 5220a7f commit 15561f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jolt/Physics/Collision/Shape/ConvexHullShape.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class JPH_EXPORT ConvexHullShapeSettings final : public ConvexShapeSettings
// See: ShapeSettings
virtual ShapeResult Create() const override;

Array<Vec3> mPoints; ///< Points to create the hull from
Array<Vec3> mPoints; ///< Points to create the hull from. Note that these points don't need to be the vertices of the convex hull, they can contain interior points or points on faces/edges.
float mMaxConvexRadius = 0.0f; ///< Convex radius as supplied by the constructor. Note that during hull creation the convex radius can be made smaller if the value is too big for the hull.
float mMaxErrorConvexRadius = 0.05f; ///< Maximum distance between the shrunk hull + convex radius and the actual hull.
float mHullTolerance = 1.0e-3f; ///< Points are allowed this far outside of the hull (increasing this yields a hull with less vertices). Note that the actual used value can be larger if the points of the hull are far apart.
Expand Down

0 comments on commit 15561f8

Please sign in to comment.