Class that constructs a ConvexHullShape.
More...
#include <ConvexHullShape.h>
|
Array< Vec3 > | mPoints |
| Points to create the hull from.
|
|
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.
|
|
RefConst< PhysicsMaterial > | mMaterial |
| Material assigned to this shape.
|
|
float | mDensity = 1000.0f |
| Uniform density of the interior of the convex object (kg / m^3)
|
|
uint64 | mUserData = 0 |
| User data (to be used freely by the application)
|
|
Class that constructs a ConvexHullShape.
◆ ConvexHullShapeSettings() [1/3]
ConvexHullShapeSettings::ConvexHullShapeSettings |
( |
| ) |
|
|
default |
Default constructor for deserialization.
◆ ConvexHullShapeSettings() [2/3]
Create a convex hull from inPoints and maximum convex radius inMaxConvexRadius, the radius is automatically lowered if the hull requires it. (internally this will be subtracted so the total size will not grow with the convex radius).
◆ ConvexHullShapeSettings() [3/3]
◆ Create()
Create a shape according to the settings specified by this object.
Implements ShapeSettings.
◆ mHullTolerance
float ConvexHullShapeSettings::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.
◆ mMaxConvexRadius
float ConvexHullShapeSettings::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.
◆ mMaxErrorConvexRadius
float ConvexHullShapeSettings::mMaxErrorConvexRadius = 0.05f |
Maximum distance between the shrunk hull + convex radius and the actual hull.
◆ mPoints
Points to create the hull from.
The documentation for this class was generated from the following files: