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,164 @@
|
|||
// <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/CylinderShape.h#L13">Jolt/Physics/Collision/Shape/CylinderShape.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class CylinderShapeSettings final : public ConvexShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that constructs a CylinderShape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct CylinderShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L19">Jolt/Physics/Collision/Shape/CylinderShape.h:19</see>
|
||||
/// <br/>
|
||||
/// <c>CylinderShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static CylinderShapeSettings Create() => Jolt.PInvoke.CylinderShapeSettings_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L23">Jolt/Physics/Collision/Shape/CylinderShape.h:23</see>
|
||||
/// <br/>
|
||||
/// <c>CylinderShapeSettings(float inHalfHeight, float inRadius, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Create a shape centered around the origin with one top at (0, -inHalfHeight, 0) and the other at (0, inHalfHeight, 0) and radius inRadius.
|
||||
/// (internally the convex radius will be subtracted from the cylinder the total cylinder will not grow with the convex radius, but the edges of the cylinder will be rounded a bit).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static CylinderShapeSettings Create(float halfHeight, float radius, float convexRadius, PhysicsMaterial material) => Jolt.PInvoke.CylinderShapeSettings_Create_2(halfHeight, radius, convexRadius, material);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L15">Jolt/Physics/Collision/Shape/CylinderShape.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.CylinderShapeSettings_GetRTTI(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L15">Jolt/Physics/Collision/Shape/CylinderShape.h:15</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.CylinderShapeSettings_CastTo(this, rTTI);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L26">Jolt/Physics/Collision/Shape/CylinderShape.h:26</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.CylinderShapeSettings_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/CylinderShape.h#L28">Jolt/Physics/Collision/Shape/CylinderShape.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeight = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetHalfHeight() => Jolt.PInvoke.CylinderShapeSettings_GetHalfHeight(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L28">Jolt/Physics/Collision/Shape/CylinderShape.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeight = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHalfHeight(float value) => Jolt.PInvoke.CylinderShapeSettings_SetHalfHeight(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L29">Jolt/Physics/Collision/Shape/CylinderShape.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>float mRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetRadius() => Jolt.PInvoke.CylinderShapeSettings_GetRadius(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L29">Jolt/Physics/Collision/Shape/CylinderShape.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>float mRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetRadius(float value) => Jolt.PInvoke.CylinderShapeSettings_SetRadius(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L30">Jolt/Physics/Collision/Shape/CylinderShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetConvexRadius() => Jolt.PInvoke.CylinderShapeSettings_GetConvexRadius(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L30">Jolt/Physics/Collision/Shape/CylinderShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetConvexRadius(float value) => Jolt.PInvoke.CylinderShapeSettings_SetConvexRadius(this, value);
|
||||
public void AddRef() => Jolt.PInvoke.CylinderShapeSettings_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.CylinderShapeSettings_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.CylinderShapeSettings_GetRefCount(this);
|
||||
public static implicit operator ConvexShapeSettings(CylinderShapeSettings value) => Jolt.PInvoke.CylinderShapeSettings_AsConvexShapeSettings(value);
|
||||
public static implicit operator ShapeSettings(CylinderShapeSettings value) => Jolt.PInvoke.CylinderShapeSettings_AsShapeSettings(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue