brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/SoftBodyShape.gen.cs
2026-10-15 14:12:02 +13:00

195 lines
11 KiB
C#

// <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/SoftBody/SoftBodyShape.h#L15">Jolt/Physics/SoftBody/SoftBodyShape.h:15</see>
/// <br/>
/// <c>class SoftBodyShape final : public Shape</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Shape used exclusively for soft bodies. Adds the ability to perform collision checks against soft bodies.
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct SoftBodyShape : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L21">Jolt/Physics/SoftBody/SoftBodyShape.h:21</see>
/// <br/>
/// <c>SoftBodyShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static SoftBodyShape Create() => Jolt.PInvoke.SoftBodyShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L24">Jolt/Physics/SoftBody/SoftBodyShape.h:24</see>
/// <br/>
/// <c>uint GetSubShapeIDBits() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Determine amount of bits needed to encode sub shape id
/// </para>
/// </remarks>
public uint GetSubShapeIDBits() => Jolt.PInvoke.SoftBodyShape_GetSubShapeIDBits(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L27">Jolt/Physics/SoftBody/SoftBodyShape.h:27</see>
/// <br/>
/// <c>uint32 GetFaceIndex(const SubShapeID &amp;inSubShapeID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Convert a sub shape ID back to a face index
/// </para>
/// </remarks>
public uint GetFaceIndex(uint subShapeID) => Jolt.PInvoke.SoftBodyShape_GetFaceIndex(this, subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L30">Jolt/Physics/SoftBody/SoftBodyShape.h:30</see>
/// <br/>
/// <c>virtual bool MustBeStatic() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape
/// </para>
/// </remarks>
public bool MustBeStatic() => Jolt.PInvoke.SoftBodyShape_MustBeStatic(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L31">Jolt/Physics/SoftBody/SoftBodyShape.h:31</see>
/// <br/>
/// <c>virtual Vec3 GetCenterOfMass() const override</c>
/// </para>
/// </summary>
public float3 GetCenterOfMass() => Jolt.PInvoke.SoftBodyShape_GetCenterOfMass(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L33">Jolt/Physics/SoftBody/SoftBodyShape.h:33</see>
/// <br/>
/// <c>virtual uint GetSubShapeIDBitsRecursive() const override</c>
/// </para>
/// </summary>
public uint GetSubShapeIDBitsRecursive() => Jolt.PInvoke.SoftBodyShape_GetSubShapeIDBitsRecursive(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L34">Jolt/Physics/SoftBody/SoftBodyShape.h:34</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
public float GetInnerRadius() => Jolt.PInvoke.SoftBodyShape_GetInnerRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L36">Jolt/Physics/SoftBody/SoftBodyShape.h:36</see>
/// <br/>
/// <c>virtual const PhysicsMaterial * GetMaterial(const SubShapeID &amp;inSubShapeID) const override</c>
/// </para>
/// </summary>
public PhysicsMaterial GetMaterial(uint subShapeID) => Jolt.PInvoke.SoftBodyShape_GetMaterial(this, subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L37">Jolt/Physics/SoftBody/SoftBodyShape.h:37</see>
/// <br/>
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &amp;inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
/// </para>
/// </summary>
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.SoftBodyShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L39">Jolt/Physics/SoftBody/SoftBodyShape.h:39</see>
/// <br/>
/// <c>virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &amp;inSurface, float &amp;outTotalVolume, float &amp;outSubmergedVolume, Vec3 &amp;outCenterOfBuoyancy</c>
/// </para>
/// </summary>
public void GetSubmergedVolume(float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset) => Jolt.PInvoke.SoftBodyShape_GetSubmergedVolume(this, centerOfMassTransform, scale, surface, out totalVolume, out submergedVolume, out centerOfBuoyancy, baseOffset);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L45">Jolt/Physics/SoftBody/SoftBodyShape.h:45</see>
/// <br/>
/// <c>virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override</c>
/// </para>
/// </summary>
public void Draw(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool useMaterialColors, bool drawWireframe) => Jolt.PInvoke.SoftBodyShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, drawWireframe);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L50">Jolt/Physics/SoftBody/SoftBodyShape.h:50</see>
/// <br/>
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &amp;inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
/// </para>
/// </summary>
public void CollideSoftBodyVertices(float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex) => Jolt.PInvoke.SoftBodyShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L51">Jolt/Physics/SoftBody/SoftBodyShape.h:51</see>
/// <br/>
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &amp;ioContext, const AABox &amp;inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
public void GetTrianglesStart(ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale) => Jolt.PInvoke.SoftBodyShape_GetTrianglesStart(this, ref context, box, positionCOM, rotation, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L54">Jolt/Physics/SoftBody/SoftBodyShape.h:54</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
public float GetVolume() => Jolt.PInvoke.SoftBodyShape_GetVolume(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyShape.h#L57">Jolt/Physics/SoftBody/SoftBodyShape.h:57</see>
/// <br/>
/// <c>static void sRegister()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register shape functions with the registry
/// </para>
/// </remarks>
public static void sRegister() => Jolt.PInvoke.SoftBodyShape_sRegister();
public void AddRef() => Jolt.PInvoke.SoftBodyShape_AddRef(this);
public void Release() => Jolt.PInvoke.SoftBodyShape_Release(this);
public uint GetRefCount() => Jolt.PInvoke.SoftBodyShape_GetRefCount(this);
public static implicit operator Shape(SoftBodyShape value) => Jolt.PInvoke.SoftBodyShape_AsShape(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}