//
// 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 MutableCompoundShape.
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:14
///
/// class MutableCompoundShapeSettings final : public CompoundShapeSettings
///
///
[InteropHandle]
public readonly partial struct MutableCompoundShapeSettings : IDisposable
{
public static MutableCompoundShapeSettings Create() => Jolt.PInvoke.MutableCompoundShapeSettings_Create();
///
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
///
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
///
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
public void AddRef() => ((ShapeSettings)this).AddRef();
public void Release() => ((ShapeSettings)this).Release();
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
public static implicit operator CompoundShapeSettings(MutableCompoundShapeSettings value) =>
Unsafe.BitCast(value);
public static implicit operator ShapeSettings(MutableCompoundShapeSettings value) =>
Unsafe.BitCast(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
///
public void AddShape(float3 position, floatQuat rotation, ShapeSettings shape, uint userData = 0) =>
((CompoundShapeSettings)this).AddShape(position, rotation, shape, userData);
///
public void AddShape(float3 position, floatQuat rotation, Shape shape, uint userData = 0) =>
((CompoundShapeSettings)this).AddShape(position, rotation, shape, userData);
///
[return: Brutal.Attributes.Fixed]
public unsafe ReadOnlySpan GetSubShapes() =>
((CompoundShapeSettings)this).GetSubShapes();
///
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
///
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
///
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
}
}