mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,193 @@
|
|||
// <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/TaperedCapsuleShape.h#L15">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:15</see>
|
||||
/// <br/>
|
||||
/// <c>class TaperedCapsuleShapeSettings final : public ConvexShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that constructs a TaperedCapsuleShape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct TaperedCapsuleShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L21">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:21</see>
|
||||
/// <br/>
|
||||
/// <c>TaperedCapsuleShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static TaperedCapsuleShapeSettings Create() => Jolt.PInvoke.TaperedCapsuleShapeSettings_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L24">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:24</see>
|
||||
/// <br/>
|
||||
/// <c>TaperedCapsuleShapeSettings(float inHalfHeightOfTaperedCylinder, float inTopRadius, float inBottomRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Create a tapered capsule centered around the origin with one sphere cap at (0,
|
||||
/// -inHalfHeightOfTaperedCylinder, 0) with radius inBottomRadius and the other at (0,
|
||||
/// inHalfHeightOfTaperedCylinder, 0) with radius inTopRadius
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static TaperedCapsuleShapeSettings Create(float halfHeightOfTaperedCylinder, float topRadius, float bottomRadius, PhysicsMaterial material) => Jolt.PInvoke.TaperedCapsuleShapeSettings_Create_2(halfHeightOfTaperedCylinder, topRadius, bottomRadius, material);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L17">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:17</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.TaperedCapsuleShapeSettings_GetRTTI(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L17">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:17</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.TaperedCapsuleShapeSettings_CastTo(this, rTTI);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L27">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsValid() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if the settings are valid
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsValid() => Jolt.PInvoke.TaperedCapsuleShapeSettings_IsValid(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L30">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsSphere() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Checks if the settings of this tapered capsule make this shape a sphere
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsSphere() => Jolt.PInvoke.TaperedCapsuleShapeSettings_IsSphere(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L33">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:33</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.TaperedCapsuleShapeSettings_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/TaperedCapsuleShape.h#L35">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:35</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeightOfTaperedCylinder = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetHalfHeightOfTaperedCylinder() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetHalfHeightOfTaperedCylinder(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L35">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:35</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeightOfTaperedCylinder = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHalfHeightOfTaperedCylinder(float value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_SetHalfHeightOfTaperedCylinder(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L36">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mTopRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetTopRadius() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetTopRadius(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L36">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mTopRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetTopRadius(float value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_SetTopRadius(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L37">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>float mBottomRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetBottomRadius() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetBottomRadius(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L37">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>float mBottomRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetBottomRadius(float value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_SetBottomRadius(this, value);
|
||||
public void AddRef() => Jolt.PInvoke.TaperedCapsuleShapeSettings_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.TaperedCapsuleShapeSettings_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetRefCount(this);
|
||||
public static implicit operator ConvexShapeSettings(TaperedCapsuleShapeSettings value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_AsConvexShapeSettings(value);
|
||||
public static implicit operator ShapeSettings(TaperedCapsuleShapeSettings value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_AsShapeSettings(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue