//
// 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 an EmptyShape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:13
///
/// class EmptyShapeSettings final : public ShapeSettings
///
///
[InteropHandle]
public readonly partial struct EmptyShapeSettings : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:18
///
/// EmptyShapeSettings() = default
///
///
public static EmptyShapeSettings Create() => Jolt.PInvoke.EmptyShapeSettings_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:19
///
/// explicit EmptyShapeSettings(Vec3Arg inCenterOfMass)
///
///
public static EmptyShapeSettings Create(float3 centerOfMass) =>
Jolt.PInvoke.EmptyShapeSettings_Create_2(centerOfMass);
///
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
///
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
///
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
///
///
/// Determines the center of mass for this shape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:23
///
/// Vec3 mCenterOfMass = Vec3::sZero()
///
///
public float3 GetCenterOfMass() => Jolt.PInvoke.EmptyShapeSettings_GetCenterOfMass(this);
///
///
/// Determines the center of mass for this shape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:23
///
/// Vec3 mCenterOfMass = Vec3::sZero()
///
///
public void SetCenterOfMass(float3 value) => Jolt.PInvoke.EmptyShapeSettings_SetCenterOfMass(this, value);
public void AddRef() => ((ShapeSettings)this).AddRef();
public void Release() => ((ShapeSettings)this).Release();
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
public static implicit operator ShapeSettings(EmptyShapeSettings value) =>
Unsafe.BitCast(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
///
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
///
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
///
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
}
}