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

183 lines
10 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/Collision/Shape/EmptyShape.h#L34">Jolt/Physics/Collision/Shape/EmptyShape.h:34</see>
/// <br/>
/// <c>class EmptyShape final : public Shape</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// An empty shape that has no volume and collides with nothing.
///
/// Possible use cases:
/// - As a placeholder for a shape that will be created later. E.g. if you first need to create a body and only then know what shape it will have.
/// - If you need a kinematic body to attach a constraint to, but you don't want the body to collide with anything.
///
/// Note that, if possible, you should also put your body in an ObjectLayer that doesn't collide with anything.
/// This ensures that collisions will be filtered out at broad phase level instead of at narrow phase level, this is more efficient.
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct EmptyShape : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L38">Jolt/Physics/Collision/Shape/EmptyShape.h:38</see>
/// <br/>
/// <c>EmptyShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static EmptyShape Create() => Jolt.PInvoke.EmptyShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L39">Jolt/Physics/Collision/Shape/EmptyShape.h:39</see>
/// <br/>
/// <c>explicit EmptyShape(Vec3Arg inCenterOfMass)</c>
/// </para>
/// </summary>
public static EmptyShape Create(float3 centerOfMass) => Jolt.PInvoke.EmptyShape_Create_2(centerOfMass);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L43">Jolt/Physics/Collision/Shape/EmptyShape.h:43</see>
/// <br/>
/// <c>Vec3 GetCenterOfMass() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: Shape
/// </para>
/// </remarks>
public float3 GetCenterOfMass() => Jolt.PInvoke.EmptyShape_GetCenterOfMass(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L45">Jolt/Physics/Collision/Shape/EmptyShape.h:45</see>
/// <br/>
/// <c>uint GetSubShapeIDBitsRecursive() const override</c>
/// </para>
/// </summary>
public uint GetSubShapeIDBitsRecursive() => Jolt.PInvoke.EmptyShape_GetSubShapeIDBitsRecursive(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L46">Jolt/Physics/Collision/Shape/EmptyShape.h:46</see>
/// <br/>
/// <c>float GetInnerRadius() const override</c>
/// </para>
/// </summary>
public float GetInnerRadius() => Jolt.PInvoke.EmptyShape_GetInnerRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L48">Jolt/Physics/Collision/Shape/EmptyShape.h:48</see>
/// <br/>
/// <c>const PhysicsMaterial * GetMaterial(const SubShapeID &amp;inSubShapeID) const override</c>
/// </para>
/// </summary>
public PhysicsMaterial GetMaterial(uint subShapeID) => Jolt.PInvoke.EmptyShape_GetMaterial(this, subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L49">Jolt/Physics/Collision/Shape/EmptyShape.h:49</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.EmptyShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L50">Jolt/Physics/Collision/Shape/EmptyShape.h:50</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.EmptyShape_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/Collision/Shape/EmptyShape.h#L56">Jolt/Physics/Collision/Shape/EmptyShape.h:56</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.EmptyShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, drawWireframe);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L61">Jolt/Physics/Collision/Shape/EmptyShape.h:61</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.EmptyShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L62">Jolt/Physics/Collision/Shape/EmptyShape.h:62</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.EmptyShape_GetTrianglesStart(this, ref context, box, positionCOM, rotation, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L65">Jolt/Physics/Collision/Shape/EmptyShape.h:65</see>
/// <br/>
/// <c>float GetVolume() const override</c>
/// </para>
/// </summary>
public float GetVolume() => Jolt.PInvoke.EmptyShape_GetVolume(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L66">Jolt/Physics/Collision/Shape/EmptyShape.h:66</see>
/// <br/>
/// <c>bool IsValidScale(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
public bool IsValidScale(float3 scale) => Jolt.PInvoke.EmptyShape_IsValidScale(this, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/EmptyShape.h#L69">Jolt/Physics/Collision/Shape/EmptyShape.h:69</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.EmptyShape_sRegister();
public void AddRef() => Jolt.PInvoke.EmptyShape_AddRef(this);
public void Release() => Jolt.PInvoke.EmptyShape_Release(this);
public uint GetRefCount() => Jolt.PInvoke.EmptyShape_GetRefCount(this);
public static implicit operator Shape(EmptyShape value) => Jolt.PInvoke.EmptyShape_AsShape(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}