brutal/Brutal.Jolt/Generated/Classes/SphereShapeSettings.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

121 lines
5.1 KiB
C#

// <auto-generated/>
// 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
{
/// <summary>
/// <para>
/// Class that constructs a SphereShape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SphereShape.h#L12">Jolt/Physics/Collision/Shape/SphereShape.h:12</see>
/// <br/>
/// <c>class SphereShapeSettings final : public ConvexShapeSettings</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct SphereShapeSettings : IDisposable
{
/// <summary>
/// <para>
/// Default constructor for deserialization
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SphereShape.h#L18">Jolt/Physics/Collision/Shape/SphereShape.h:18</see>
/// <br/>
/// <c>SphereShapeSettings() = default</c>
/// </para>
/// </summary>
public static SphereShapeSettings Create() => Jolt.PInvoke.SphereShapeSettings_Create();
/// <summary>
/// <para>
/// Create a sphere with radius inRadius
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SphereShape.h#L21">Jolt/Physics/Collision/Shape/SphereShape.h:21</see>
/// <br/>
/// <c>explicit SphereShapeSettings(float inRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
/// </para>
/// </summary>
public static SphereShapeSettings Create(float radius, PhysicsMaterial material = default) =>
Jolt.PInvoke.SphereShapeSettings_Create_2(radius, material);
/// <inheritdoc cref="ShapeSettings.GetRTTI()"/>
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
/// <inheritdoc cref="ShapeSettings.CastTo(RTTI)"/>
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SphereShape.h#L26">Jolt/Physics/Collision/Shape/SphereShape.h:26</see>
/// <br/>
/// <c>float mRadius = 0.0f</c>
/// </para>
/// </summary>
public float GetRadius() => Jolt.PInvoke.SphereShapeSettings_GetRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SphereShape.h#L26">Jolt/Physics/Collision/Shape/SphereShape.h:26</see>
/// <br/>
/// <c>float mRadius = 0.0f</c>
/// </para>
/// </summary>
public void SetRadius(float value) => Jolt.PInvoke.SphereShapeSettings_SetRadius(this, value);
public void AddRef() => ((ShapeSettings)this).AddRef();
public void Release() => ((ShapeSettings)this).Release();
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
public static implicit operator ConvexShapeSettings(SphereShapeSettings value) =>
Unsafe.BitCast<SphereShapeSettings, ConvexShapeSettings>(value);
public static implicit operator ShapeSettings(SphereShapeSettings value) =>
Unsafe.BitCast<SphereShapeSettings, ShapeSettings>(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
/// <inheritdoc cref="ConvexShapeSettings.SetDensity(float)"/>
public void SetDensity(float density) => ((ConvexShapeSettings)this).SetDensity(density);
/// <inheritdoc cref="ConvexShapeSettings.GetMaterial()"/>
public PhysicsMaterial GetMaterial() => ((ConvexShapeSettings)this).GetMaterial();
/// <inheritdoc cref="ConvexShapeSettings.SetMaterial(PhysicsMaterial)"/>
public void SetMaterial(PhysicsMaterial value) => ((ConvexShapeSettings)this).SetMaterial(value);
/// <inheritdoc cref="ConvexShapeSettings.GetDensity()"/>
public float GetDensity() => ((ConvexShapeSettings)this).GetDensity();
/// <inheritdoc cref="ShapeSettings.ClearCachedResult()"/>
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
/// <inheritdoc cref="ShapeSettings.GetUserData()"/>
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
/// <inheritdoc cref="ShapeSettings.SetUserData(ulong)"/>
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
}
}