jrouwe/JoltPhysics

Documentation: Syntax is not valid for JPH::ConvexHullShapeSettings

Closed this issue · 2 comments

In the 'Creating Shapes' section of the documentation ( https://jrouwe.github.io/JoltPhysics/index.html#creating-shapes ), the following sample is not valid. The signature of the function in ConvexShape.h does not match its usage here.

// Create the settings object for a convex hull JPH::ConvexHullShapeSettings settings(vertices, JPH::cDefaultConvexRadius);

Signature in ConvexShape.h:
/// Constructor ConvexShapeSettings() = default; explicit ConvexShapeSettings(const PhysicsMaterial *inMaterial) : mMaterial(inMaterial) { }

It compiles for me, ConvexHullShapeSettings != ConvexShapeSettings

Yep, I figured that out, so I closed the issue. I was also missing an include of ConvexHullShape.h which is why things weren't working.