brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/TaperedCylinderShapeSettings.gen.cs
2026-10-15 14:12:02 +13:00

182 lines
9.5 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L13">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:13</see>
/// <br/>
/// <c>class TaperedCylinderShapeSettings final : public ConvexShapeSettings</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Class that constructs a TaperedCylinderShape
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct TaperedCylinderShapeSettings : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L19">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:19</see>
/// <br/>
/// <c>TaperedCylinderShapeSettings() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Default constructor for deserialization
/// </para>
/// </remarks>
public static TaperedCylinderShapeSettings Create() => Jolt.PInvoke.TaperedCylinderShapeSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L22">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:22</see>
/// <br/>
/// <c>TaperedCylinderShapeSettings(float inHalfHeightOfTaperedCylinder, float inTopRadius, float inBottomRadius, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Create a tapered cylinder centered around the origin with bottom at (0, -inHalfHeightOfTaperedCylinder,
/// 0) with radius inBottomRadius and top at (0, inHalfHeightOfTaperedCylinder, 0) with radius inTopRadius
/// </para>
/// </remarks>
public static TaperedCylinderShapeSettings Create(float halfHeightOfTaperedCylinder, float topRadius, float bottomRadius, float convexRadius, PhysicsMaterial material) => Jolt.PInvoke.TaperedCylinderShapeSettings_Create_2(halfHeightOfTaperedCylinder, topRadius, bottomRadius, convexRadius, material);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L15">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:15</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
public RTTI GetRTTI() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetRTTI(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L15">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:15</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.TaperedCylinderShapeSettings_CastTo(this, rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L25">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:25</see>
/// <br/>
/// <c>virtual ShapeResult Create() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: ShapeSettings
/// </para>
/// <para>
/// Throws InvalidOperationException with Jolt's error message when the operation fails.
/// </para>
/// </remarks>
public Shape CreateShape()
{
var _handle = Jolt.PInvoke.TaperedCylinderShapeSettings_CreateShape(this);
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
return _handle;
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L27">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:27</see>
/// <br/>
/// <c>float mHalfHeight = 0.0f</c>
/// </para>
/// </summary>
public float GetHalfHeight() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetHalfHeight(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L27">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:27</see>
/// <br/>
/// <c>float mHalfHeight = 0.0f</c>
/// </para>
/// </summary>
public void SetHalfHeight(float value) => Jolt.PInvoke.TaperedCylinderShapeSettings_SetHalfHeight(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L28">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:28</see>
/// <br/>
/// <c>float mTopRadius = 0.0f</c>
/// </para>
/// </summary>
public float GetTopRadius() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetTopRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L28">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:28</see>
/// <br/>
/// <c>float mTopRadius = 0.0f</c>
/// </para>
/// </summary>
public void SetTopRadius(float value) => Jolt.PInvoke.TaperedCylinderShapeSettings_SetTopRadius(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L29">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:29</see>
/// <br/>
/// <c>float mBottomRadius = 0.0f</c>
/// </para>
/// </summary>
public float GetBottomRadius() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetBottomRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L29">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:29</see>
/// <br/>
/// <c>float mBottomRadius = 0.0f</c>
/// </para>
/// </summary>
public void SetBottomRadius(float value) => Jolt.PInvoke.TaperedCylinderShapeSettings_SetBottomRadius(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L30">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:30</see>
/// <br/>
/// <c>float mConvexRadius = 0.0f</c>
/// </para>
/// </summary>
public float GetConvexRadius() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetConvexRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L30">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:30</see>
/// <br/>
/// <c>float mConvexRadius = 0.0f</c>
/// </para>
/// </summary>
public void SetConvexRadius(float value) => Jolt.PInvoke.TaperedCylinderShapeSettings_SetConvexRadius(this, value);
public void AddRef() => Jolt.PInvoke.TaperedCylinderShapeSettings_AddRef(this);
public void Release() => Jolt.PInvoke.TaperedCylinderShapeSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetRefCount(this);
public static implicit operator ConvexShapeSettings(TaperedCylinderShapeSettings value) => Jolt.PInvoke.TaperedCylinderShapeSettings_AsConvexShapeSettings(value);
public static implicit operator ShapeSettings(TaperedCylinderShapeSettings value) => Jolt.PInvoke.TaperedCylinderShapeSettings_AsShapeSettings(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}