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,119 @@
|
|||
// <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/EmptyShape.h#L13">Jolt/Physics/Collision/Shape/EmptyShape.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class EmptyShapeSettings final : public ShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that constructs an EmptyShape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct EmptyShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L18">Jolt/Physics/Collision/Shape/EmptyShape.h:18</see>
|
||||
/// <br/>
|
||||
/// <c>EmptyShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static EmptyShapeSettings Create() => Jolt.PInvoke.EmptyShapeSettings_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L19">Jolt/Physics/Collision/Shape/EmptyShape.h:19</see>
|
||||
/// <br/>
|
||||
/// <c>explicit EmptyShapeSettings(Vec3Arg inCenterOfMass)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static EmptyShapeSettings Create(float3 centerOfMass) => Jolt.PInvoke.EmptyShapeSettings_Create_2(centerOfMass);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L15">Jolt/Physics/Collision/Shape/EmptyShape.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.EmptyShapeSettings_GetRTTI(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L15">Jolt/Physics/Collision/Shape/EmptyShape.h:15</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.EmptyShapeSettings_CastTo(this, rTTI);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L21">Jolt/Physics/Collision/Shape/EmptyShape.h:21</see>
|
||||
/// <br/>
|
||||
/// <c>ShapeResult Create() const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Throws InvalidOperationException with Jolt's error message when the operation fails.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public Shape CreateShape()
|
||||
{
|
||||
var _handle = Jolt.PInvoke.EmptyShapeSettings_CreateShape(this);
|
||||
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
|
||||
return _handle;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Determines the center of mass for this shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L23">Jolt/Physics/Collision/Shape/EmptyShape.h:23</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mCenterOfMass = Vec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetCenterOfMass() => Jolt.PInvoke.EmptyShapeSettings_GetCenterOfMass(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Determines the center of mass for this shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L23">Jolt/Physics/Collision/Shape/EmptyShape.h:23</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mCenterOfMass = Vec3::sZero()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetCenterOfMass(float3 value) => Jolt.PInvoke.EmptyShapeSettings_SetCenterOfMass(this, value);
|
||||
public void AddRef() => Jolt.PInvoke.EmptyShapeSettings_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.EmptyShapeSettings_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.EmptyShapeSettings_GetRefCount(this);
|
||||
public static implicit operator ShapeSettings(EmptyShapeSettings value) => Jolt.PInvoke.EmptyShapeSettings_AsShapeSettings(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue