mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,196 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Class that constructs a TaperedCylinderShape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L13">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class TaperedCylinderShapeSettings final : public ConvexShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct TaperedCylinderShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L19">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:19</see>
|
||||
/// <br/>
|
||||
/// <c>TaperedCylinderShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static TaperedCylinderShapeSettings Create() => Jolt.PInvoke.TaperedCylinderShapeSettings_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Create a tapered cylinder centered around the origin with bottom at (0, -inHalfHeightOfTaperedCylinder,
|
||||
/// 0) with radius inBottomRadius and top at (0, inHalfHeightOfTaperedCylinder, 0) with radius inTopRadius
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L22">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>TaperedCylinderShapeSettings(float inHalfHeightOfTaperedCylinder, float inTopRadius, float inBottomRadius, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static TaperedCylinderShapeSettings Create(
|
||||
float halfHeightOfTaperedCylinder,
|
||||
float topRadius,
|
||||
float bottomRadius,
|
||||
float convexRadius = 0.05f,
|
||||
PhysicsMaterial material = default
|
||||
) =>
|
||||
Jolt.PInvoke.TaperedCylinderShapeSettings_Create_2(
|
||||
halfHeightOfTaperedCylinder,
|
||||
topRadius,
|
||||
bottomRadius,
|
||||
convexRadius,
|
||||
material
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.GetRTTI()"/>
|
||||
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.CastTo(RTTI)"/>
|
||||
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
|
||||
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L28">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeight = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetHalfHeight() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetHalfHeight(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L28">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfHeight = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHalfHeight(float value) => Jolt.PInvoke.TaperedCylinderShapeSettings_SetHalfHeight(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L29">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>float mTopRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetTopRadius() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetTopRadius(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L29">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>float mTopRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetTopRadius(float value) => Jolt.PInvoke.TaperedCylinderShapeSettings_SetTopRadius(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L30">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mBottomRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetBottomRadius() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetBottomRadius(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L30">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mBottomRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetBottomRadius(float value) =>
|
||||
Jolt.PInvoke.TaperedCylinderShapeSettings_SetBottomRadius(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L31">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:31</see>
|
||||
/// <br/>
|
||||
/// <c>float mConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetConvexRadius() => Jolt.PInvoke.TaperedCylinderShapeSettings_GetConvexRadius(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCylinderShape.h#L31">Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:31</see>
|
||||
/// <br/>
|
||||
/// <c>float mConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetConvexRadius(float value) =>
|
||||
Jolt.PInvoke.TaperedCylinderShapeSettings_SetConvexRadius(this, value);
|
||||
|
||||
public void AddRef() => ((ShapeSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((ShapeSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator ConvexShapeSettings(TaperedCylinderShapeSettings value) =>
|
||||
Unsafe.BitCast<TaperedCylinderShapeSettings, ConvexShapeSettings>(value);
|
||||
|
||||
public static implicit operator ShapeSettings(TaperedCylinderShapeSettings value) =>
|
||||
Unsafe.BitCast<TaperedCylinderShapeSettings, ShapeSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ConvexShapeSettings.SetDensity(float)"/>
|
||||
public void SetDensity(float density) => ((ConvexShapeSettings)this).SetDensity(density);
|
||||
|
||||
/// <inheritdoc cref="ConvexShapeSettings.GetMaterial()"/>
|
||||
public PhysicsMaterial GetMaterial() => ((ConvexShapeSettings)this).GetMaterial();
|
||||
|
||||
/// <inheritdoc cref="ConvexShapeSettings.SetMaterial(PhysicsMaterial)"/>
|
||||
public void SetMaterial(PhysicsMaterial value) => ((ConvexShapeSettings)this).SetMaterial(value);
|
||||
|
||||
/// <inheritdoc cref="ConvexShapeSettings.GetDensity()"/>
|
||||
public float GetDensity() => ((ConvexShapeSettings)this).GetDensity();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.ClearCachedResult()"/>
|
||||
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.GetUserData()"/>
|
||||
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.SetUserData(ulong)"/>
|
||||
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue