// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// Class that constructs a ConvexShape (abstract) /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:17 ///
/// class ConvexShapeSettings : public ShapeSettings ///
///
[InteropHandle] public readonly partial struct ConvexShapeSettings : IDisposable { /// public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI(); /// public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti); /// /// /// Set the density of the object in kg / m^3 /// /// /// C++: /// Jolt/Physics/Collision/Shape/ConvexShape.h:27 ///
/// void SetDensity(float inDensity) ///
///
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 /// /// /// The returned handle carries its own reference; Dispose it once when you're done. /// /// 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() => ((ShapeSettings)this).AddRef(); public void Release() => ((ShapeSettings)this).Release(); public uint GetRefCount() => ((ShapeSettings)this).GetRefCount(); public static implicit operator ShapeSettings(ConvexShapeSettings value) => Unsafe.BitCast(value); public void Dispose() { if (IsNull()) return; Release(); } /// public Shape CreateShape() => ((ShapeSettings)this).CreateShape(); /// public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult(); /// public ulong GetUserData() => ((ShapeSettings)this).GetUserData(); /// public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value); } }