mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58: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,174 @@
|
|||
// <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/CapsuleShape.h#L12">Jolt/Physics/Collision/Shape/CapsuleShape.h:12</see>
|
||||
/// <br/>
|
||||
/// <c>class CapsuleShapeSettings final : public ConvexShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that constructs a CapsuleShape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct CapsuleShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L18">Jolt/Physics/Collision/Shape/CapsuleShape.h:18</see>
|
||||
/// <br/>
|
||||
/// <c>CapsuleShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static CapsuleShapeSettings Create() => Jolt.PInvoke.CapsuleShapeSettings_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L21">Jolt/Physics/Collision/Shape/CapsuleShape.h:21</see>
|
||||
/// <br/>
|
||||
/// <c>CapsuleShapeSettings(float inHalfHeightOfCylinder, float inRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Create a capsule centered around the origin with one sphere cap at (0, -inHalfHeightOfCylinder, 0) and
|
||||
/// the other at (0, inHalfHeightOfCylinder, 0)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static CapsuleShapeSettings Create(float halfHeightOfCylinder, float radius, PhysicsMaterial material) => Jolt.PInvoke.CapsuleShapeSettings_Create_2(halfHeightOfCylinder, radius, material);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L14">Jolt/Physics/Collision/Shape/CapsuleShape.h:14</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.CapsuleShapeSettings_GetRTTI(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L14">Jolt/Physics/Collision/Shape/CapsuleShape.h:14</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.CapsuleShapeSettings_CastTo(this, rTTI);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L24">Jolt/Physics/Collision/Shape/CapsuleShape.h:24</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsValid() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if this is a valid capsule shape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsValid() => Jolt.PInvoke.CapsuleShapeSettings_IsValid(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L27">Jolt/Physics/Collision/Shape/CapsuleShape.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsSphere() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Checks if the settings of this capsule make this shape a sphere
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsSphere() => Jolt.PInvoke.CapsuleShapeSettings_IsSphere(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L30">Jolt/Physics/Collision/Shape/CapsuleShape.h:30</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.CapsuleShapeSettings_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/CapsuleShape.h#L32">Jolt/Physics/Collision/Shape/CapsuleShape.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>float mRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetRadius() => Jolt.PInvoke.CapsuleShapeSettings_GetRadius(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L32">Jolt/Physics/Collision/Shape/CapsuleShape.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>float mRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetRadius(float value) => Jolt.PInvoke.CapsuleShapeSettings_SetRadius(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L33">Jolt/Physics/Collision/Shape/CapsuleShape.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeightOfCylinder = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetHalfHeightOfCylinder() => Jolt.PInvoke.CapsuleShapeSettings_GetHalfHeightOfCylinder(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L33">Jolt/Physics/Collision/Shape/CapsuleShape.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeightOfCylinder = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHalfHeightOfCylinder(float value) => Jolt.PInvoke.CapsuleShapeSettings_SetHalfHeightOfCylinder(this, value);
|
||||
public void AddRef() => Jolt.PInvoke.CapsuleShapeSettings_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.CapsuleShapeSettings_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.CapsuleShapeSettings_GetRefCount(this);
|
||||
public static implicit operator ConvexShapeSettings(CapsuleShapeSettings value) => Jolt.PInvoke.CapsuleShapeSettings_AsConvexShapeSettings(value);
|
||||
public static implicit operator ShapeSettings(CapsuleShapeSettings value) => Jolt.PInvoke.CapsuleShapeSettings_AsShapeSettings(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue