mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
171 lines
8.4 KiB
C#
171 lines
8.4 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/ConvexHullShape.h#L17">Jolt/Physics/Collision/Shape/ConvexHullShape.h:17</see>
|
|
/// <br/>
|
|
/// <c>class ConvexHullShapeSettings final : public ConvexShapeSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Class that constructs a ConvexHullShape
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct ConvexHullShapeSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L23">Jolt/Physics/Collision/Shape/ConvexHullShape.h:23</see>
|
|
/// <br/>
|
|
/// <c>ConvexHullShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Default constructor for deserialization
|
|
/// </para>
|
|
/// </remarks>
|
|
public static ConvexHullShapeSettings Create() => Jolt.PInvoke.ConvexHullShapeSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L19">Jolt/Physics/Collision/Shape/ConvexHullShape.h:19</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.ConvexHullShapeSettings_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L19">Jolt/Physics/Collision/Shape/ConvexHullShape.h:19</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.ConvexHullShapeSettings_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L31">Jolt/Physics/Collision/Shape/ConvexHullShape.h:31</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.ConvexHullShapeSettings_CreateShape(this);
|
|
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
|
|
return _handle;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// Convex radius as supplied by the constructor. Note that during hull creation the convex radius can be
|
|
/// made smaller if the value is too big for the hull.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L34">Jolt/Physics/Collision/Shape/ConvexHullShape.h:34</see>
|
|
/// <br/>
|
|
/// <c>float mMaxConvexRadius = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxConvexRadius() => Jolt.PInvoke.ConvexHullShapeSettings_GetMaxConvexRadius(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Convex radius as supplied by the constructor. Note that during hull creation the convex radius can be
|
|
/// made smaller if the value is too big for the hull.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L34">Jolt/Physics/Collision/Shape/ConvexHullShape.h:34</see>
|
|
/// <br/>
|
|
/// <c>float mMaxConvexRadius = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxConvexRadius(float value) => Jolt.PInvoke.ConvexHullShapeSettings_SetMaxConvexRadius(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum distance between the shrunk hull + convex radius and the actual hull.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L35">Jolt/Physics/Collision/Shape/ConvexHullShape.h:35</see>
|
|
/// <br/>
|
|
/// <c>float mMaxErrorConvexRadius = 0.05f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxErrorConvexRadius() => Jolt.PInvoke.ConvexHullShapeSettings_GetMaxErrorConvexRadius(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum distance between the shrunk hull + convex radius and the actual hull.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L35">Jolt/Physics/Collision/Shape/ConvexHullShape.h:35</see>
|
|
/// <br/>
|
|
/// <c>float mMaxErrorConvexRadius = 0.05f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxErrorConvexRadius(float value) => Jolt.PInvoke.ConvexHullShapeSettings_SetMaxErrorConvexRadius(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Points are allowed this far outside of the hull (increasing this yields a hull with less vertices). Note
|
|
/// that the actual used value can be larger if the points of the hull are far apart.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L36">Jolt/Physics/Collision/Shape/ConvexHullShape.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mHullTolerance = 1.0e-3f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetHullTolerance() => Jolt.PInvoke.ConvexHullShapeSettings_GetHullTolerance(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Points are allowed this far outside of the hull (increasing this yields a hull with less vertices). Note
|
|
/// that the actual used value can be larger if the points of the hull are far apart.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L36">Jolt/Physics/Collision/Shape/ConvexHullShape.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mHullTolerance = 1.0e-3f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetHullTolerance(float value) => Jolt.PInvoke.ConvexHullShapeSettings_SetHullTolerance(this, value);
|
|
public void AddRef() => Jolt.PInvoke.ConvexHullShapeSettings_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.ConvexHullShapeSettings_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.ConvexHullShapeSettings_GetRefCount(this);
|
|
public static implicit operator ConvexShapeSettings(ConvexHullShapeSettings value) => Jolt.PInvoke.ConvexHullShapeSettings_AsConvexShapeSettings(value);
|
|
public static implicit operator ShapeSettings(ConvexHullShapeSettings value) => Jolt.PInvoke.ConvexHullShapeSettings_AsShapeSettings(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|