// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:17 ///
/// class ConvexHullShapeSettings final : public ConvexShapeSettings ///
///
/// /// /// Class that constructs a ConvexHullShape /// /// [InteropHandle] public readonly partial struct ConvexHullShapeSettings : IDisposable { /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:23 ///
/// ConvexHullShapeSettings() = default ///
///
/// /// /// Default constructor for deserialization /// /// public static ConvexHullShapeSettings Create() => Jolt.PInvoke.ConvexHullShapeSettings_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:19 ///
/// ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// public RTTI GetRTTI() => Jolt.PInvoke.ConvexHullShapeSettings_GetRTTI(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:19 ///
/// ///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.ConvexHullShapeSettings_CastTo(this, rTTI); /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:31 ///
/// virtual ShapeResult Create() const override ///
///
/// /// /// See: ShapeSettings /// /// /// Throws InvalidOperationException with Jolt's error message when the operation fails. /// /// public Shape CreateShape() { var _handle = Jolt.PInvoke.ConvexHullShapeSettings_CreateShape(this); if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError()); return _handle; } /// /// /// 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. /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:34 ///
/// float mMaxConvexRadius = 0.0f ///
///
public float GetMaxConvexRadius() => Jolt.PInvoke.ConvexHullShapeSettings_GetMaxConvexRadius(this); /// /// /// 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. /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:34 ///
/// float mMaxConvexRadius = 0.0f ///
///
public void SetMaxConvexRadius(float value) => Jolt.PInvoke.ConvexHullShapeSettings_SetMaxConvexRadius(this, value); /// /// /// Maximum distance between the shrunk hull + convex radius and the actual hull. /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:35 ///
/// float mMaxErrorConvexRadius = 0.05f ///
///
public float GetMaxErrorConvexRadius() => Jolt.PInvoke.ConvexHullShapeSettings_GetMaxErrorConvexRadius(this); /// /// /// Maximum distance between the shrunk hull + convex radius and the actual hull. /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:35 ///
/// float mMaxErrorConvexRadius = 0.05f ///
///
public void SetMaxErrorConvexRadius(float value) => Jolt.PInvoke.ConvexHullShapeSettings_SetMaxErrorConvexRadius(this, value); /// /// /// 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. /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:36 ///
/// float mHullTolerance = 1.0e-3f ///
///
public float GetHullTolerance() => Jolt.PInvoke.ConvexHullShapeSettings_GetHullTolerance(this); /// /// /// 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. /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexHullShape.h:36 ///
/// float mHullTolerance = 1.0e-3f ///
///
public void SetHullTolerance(float value) => Jolt.PInvoke.ConvexHullShapeSettings_SetHullTolerance(this, value); public void AddRef() => Jolt.PInvoke.ConvexHullShapeSettings_AddRef(this); public void Release() => Jolt.PInvoke.ConvexHullShapeSettings_Release(this); public uint GetRefCount() => Jolt.PInvoke.ConvexHullShapeSettings_GetRefCount(this); public static implicit operator ConvexShapeSettings(ConvexHullShapeSettings value) => Jolt.PInvoke.ConvexHullShapeSettings_AsConvexShapeSettings(value); public static implicit operator ShapeSettings(ConvexHullShapeSettings value) => Jolt.PInvoke.ConvexHullShapeSettings_AsShapeSettings(value); public void Dispose() { if (IsNull()) return; Release(); } } }