mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
202 lines
9.2 KiB
C#
202 lines
9.2 KiB
C#
// <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 TaperedCapsuleShape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
|
[InteropHandle]
|
|
public readonly partial struct TaperedCapsuleShapeSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Default constructor for deserialization
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L21">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:21</see>
|
|
/// <br/>
|
|
/// <c>TaperedCapsuleShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static TaperedCapsuleShapeSettings Create() => Jolt.PInvoke.TaperedCapsuleShapeSettings_Create();
|
|
|
|
/// <summary>
|
|
/// <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>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
|
public static TaperedCapsuleShapeSettings Create(
|
|
float halfHeightOfTaperedCylinder,
|
|
float topRadius,
|
|
float bottomRadius,
|
|
PhysicsMaterial material = default
|
|
) =>
|
|
Jolt.PInvoke.TaperedCapsuleShapeSettings_Create_2(
|
|
halfHeightOfTaperedCylinder,
|
|
topRadius,
|
|
bottomRadius,
|
|
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);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Check if the settings are valid
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L27">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:27</see>
|
|
/// <br/>
|
|
/// <c>bool IsValid() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool IsValid() => Jolt.PInvoke.TaperedCapsuleShapeSettings_IsValid(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Checks if the settings of this tapered capsule make this shape a sphere
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L30">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:30</see>
|
|
/// <br/>
|
|
/// <c>bool IsSphere() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool IsSphere() => Jolt.PInvoke.TaperedCapsuleShapeSettings_IsSphere(this);
|
|
|
|
/// <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/TaperedCapsuleShape.h#L36">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:36</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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L36">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:36</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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L37">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:37</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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L37">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:37</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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L38">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:38</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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h#L38">Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:38</see>
|
|
/// <br/>
|
|
/// <c>float mBottomRadius = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetBottomRadius(float value) =>
|
|
Jolt.PInvoke.TaperedCapsuleShapeSettings_SetBottomRadius(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(TaperedCapsuleShapeSettings value) =>
|
|
Unsafe.BitCast<TaperedCapsuleShapeSettings, ConvexShapeSettings>(value);
|
|
|
|
public static implicit operator ShapeSettings(TaperedCapsuleShapeSettings value) =>
|
|
Unsafe.BitCast<TaperedCapsuleShapeSettings, 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);
|
|
}
|
|
}
|