// // 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/ConvexShape.h:17 ///
/// class ConvexShapeSettings : public ShapeSettings ///
///
/// /// /// Class that constructs a ConvexShape (abstract) /// /// [InteropHandle] public readonly partial struct ConvexShapeSettings : IDisposable { /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:19 ///
/// ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// public RTTI GetRTTI() => Jolt.PInvoke.ConvexShapeSettings_GetRTTI(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:19 ///
/// ///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.ConvexShapeSettings_CastTo(this, rTTI); /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:27 ///
/// void SetDensity(float inDensity) ///
///
/// /// /// Set the density of the object in kg / m^3 /// /// public void SetDensity(float density) => Jolt.PInvoke.ConvexShapeSettings_SetDensity(this, density); /// /// /// Material assigned to this shape /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:30 ///
/// RefConst<PhysicsMaterial> mMaterial ///
///
/// /// /// Properties /// /// public PhysicsMaterial GetMaterial() => Jolt.PInvoke.ConvexShapeSettings_GetMaterial(this); /// /// /// Material assigned to this shape /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:30 ///
/// RefConst<PhysicsMaterial> mMaterial ///
///
/// /// /// Properties /// /// public void SetMaterial(PhysicsMaterial value) => Jolt.PInvoke.ConvexShapeSettings_SetMaterial(this, value); /// /// /// Uniform density of the interior of the convex object (kg / m^3) /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:31 ///
/// float mDensity = 1000.0f ///
///
public float GetDensity() => Jolt.PInvoke.ConvexShapeSettings_GetDensity(this); public void AddRef() => Jolt.PInvoke.ConvexShapeSettings_AddRef(this); public void Release() => Jolt.PInvoke.ConvexShapeSettings_Release(this); public uint GetRefCount() => Jolt.PInvoke.ConvexShapeSettings_GetRefCount(this); public static implicit operator ShapeSettings(ConvexShapeSettings value) => Jolt.PInvoke.ConvexShapeSettings_AsShapeSettings(value); public void Dispose() { if (IsNull()) return; Release(); } } }