mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
188
Brutal.Jolt/Generated/Classes/TriangleShapeSettings.gen.cs
Normal file
188
Brutal.Jolt/Generated/Classes/TriangleShapeSettings.gen.cs
Normal file
|
|
@ -0,0 +1,188 @@
|
|||
// <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 TriangleShape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L12">Jolt/Physics/Collision/Shape/TriangleShape.h:12</see>
|
||||
/// <br/>
|
||||
/// <c>class TriangleShapeSettings final : public ConvexShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct TriangleShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L18">Jolt/Physics/Collision/Shape/TriangleShape.h:18</see>
|
||||
/// <br/>
|
||||
/// <c>TriangleShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static TriangleShapeSettings Create() => Jolt.PInvoke.TriangleShapeSettings_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Create a triangle with points (inV1, inV2, inV3) (counter clockwise) and convex radius inConvexRadius.
|
||||
/// Note that the convex radius is currently only used for shape vs shape collision, for all other purposes
|
||||
/// the triangle is infinitely thin.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L22">Jolt/Physics/Collision/Shape/TriangleShape.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>TriangleShapeSettings(Vec3Arg inV1, Vec3Arg inV2, Vec3Arg inV3, float inConvexRadius = 0.0f, const PhysicsMaterial *inMaterial = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static TriangleShapeSettings Create(
|
||||
float3 v1,
|
||||
float3 v2,
|
||||
float3 v3,
|
||||
float convexRadius = 0f,
|
||||
PhysicsMaterial material = default
|
||||
) => Jolt.PInvoke.TriangleShapeSettings_Create_2(v1, v2, v3, 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/TriangleShape.h#L27">Jolt/Physics/Collision/Shape/TriangleShape.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetV1() => Jolt.PInvoke.TriangleShapeSettings_GetV1(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L27">Jolt/Physics/Collision/Shape/TriangleShape.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetV1(float3 value) => Jolt.PInvoke.TriangleShapeSettings_SetV1(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L28">Jolt/Physics/Collision/Shape/TriangleShape.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV2</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetV2() => Jolt.PInvoke.TriangleShapeSettings_GetV2(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L28">Jolt/Physics/Collision/Shape/TriangleShape.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV2</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetV2(float3 value) => Jolt.PInvoke.TriangleShapeSettings_SetV2(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L29">Jolt/Physics/Collision/Shape/TriangleShape.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV3</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetV3() => Jolt.PInvoke.TriangleShapeSettings_GetV3(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L29">Jolt/Physics/Collision/Shape/TriangleShape.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV3</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetV3(float3 value) => Jolt.PInvoke.TriangleShapeSettings_SetV3(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L30">Jolt/Physics/Collision/Shape/TriangleShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetConvexRadius() => Jolt.PInvoke.TriangleShapeSettings_GetConvexRadius(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/TriangleShape.h#L30">Jolt/Physics/Collision/Shape/TriangleShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetConvexRadius(float value) => Jolt.PInvoke.TriangleShapeSettings_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(TriangleShapeSettings value) =>
|
||||
Unsafe.BitCast<TriangleShapeSettings, ConvexShapeSettings>(value);
|
||||
|
||||
public static implicit operator ShapeSettings(TriangleShapeSettings value) =>
|
||||
Unsafe.BitCast<TriangleShapeSettings, 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