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

282 lines
14 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/PlaneShape.h#L42">Jolt/Physics/Collision/Shape/PlaneShape.h:42</see>
/// <br/>
/// <c>class PlaneShape final : public Shape</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// A plane shape. The negative half space is considered solid. Planes cannot be dynamic objects, only static or kinematic.
/// The plane is considered an infinite shape, but testing collision outside of its bounding box (defined by the half-extent parameter) will not return a collision result.
/// At the edge of the bounding box collision with the plane will be inconsistent. If you need something of a well defined size, a box shape may be better.
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct PlaneShape : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L48">Jolt/Physics/Collision/Shape/PlaneShape.h:48</see>
/// <br/>
/// <c>PlaneShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static PlaneShape Create() => Jolt.PInvoke.PlaneShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L49">Jolt/Physics/Collision/Shape/PlaneShape.h:49</see>
/// <br/>
/// <c>explicit PlaneShape(const Plane &amp;inPlane, const PhysicsMaterial *inMaterial = nullptr, float inHalfExtent = PlaneShapeSettings::cDefaultHalfExtent)</c>
/// </para>
/// </summary>
public static PlaneShape Create(Plane plane, PhysicsMaterial material, float halfExtent) => Jolt.PInvoke.PlaneShape_Create_2(plane, material, halfExtent);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L53">Jolt/Physics/Collision/Shape/PlaneShape.h:53</see>
/// <br/>
/// <c>const Plane &amp; GetPlane() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the plane
/// </para>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
public Plane GetPlane() => Jolt.PInvoke.PlaneShape_GetPlane(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L56">Jolt/Physics/Collision/Shape/PlaneShape.h:56</see>
/// <br/>
/// <c>float GetHalfExtent() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the half-extent of the bounding box of the plane
/// </para>
/// </remarks>
public float GetHalfExtent() => Jolt.PInvoke.PlaneShape_GetHalfExtent(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L59">Jolt/Physics/Collision/Shape/PlaneShape.h:59</see>
/// <br/>
/// <c>virtual bool MustBeStatic() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::MustBeStatic
/// </para>
/// </remarks>
public bool MustBeStatic() => Jolt.PInvoke.PlaneShape_MustBeStatic(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L65">Jolt/Physics/Collision/Shape/PlaneShape.h:65</see>
/// <br/>
/// <c>virtual uint GetSubShapeIDBitsRecursive() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubShapeIDBitsRecursive
/// </para>
/// </remarks>
public uint GetSubShapeIDBitsRecursive() => Jolt.PInvoke.PlaneShape_GetSubShapeIDBitsRecursive(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L68">Jolt/Physics/Collision/Shape/PlaneShape.h:68</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetInnerRadius
/// </para>
/// </remarks>
public float GetInnerRadius() => Jolt.PInvoke.PlaneShape_GetInnerRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L74">Jolt/Physics/Collision/Shape/PlaneShape.h:74</see>
/// <br/>
/// <c>virtual const PhysicsMaterial * GetMaterial(const SubShapeID &amp;inSubShapeID) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetMaterial
/// </para>
/// </remarks>
public PhysicsMaterial GetMaterial(uint subShapeID) => Jolt.PInvoke.PlaneShape_GetMaterial(this, subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L77">Jolt/Physics/Collision/Shape/PlaneShape.h:77</see>
/// <br/>
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &amp;inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSurfaceNormal
/// </para>
/// </remarks>
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.PlaneShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L84">Jolt/Physics/Collision/Shape/PlaneShape.h:84</see>
/// <br/>
/// <c>virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::Draw
/// </para>
/// </remarks>
public void Draw(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool useMaterialColors, bool drawWireframe) => Jolt.PInvoke.PlaneShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, drawWireframe);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L95">Jolt/Physics/Collision/Shape/PlaneShape.h:95</see>
/// <br/>
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &amp;inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: Shape::CollideSoftBodyVertices
/// </para>
/// </remarks>
public void CollideSoftBodyVertices(float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex) => Jolt.PInvoke.PlaneShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L98">Jolt/Physics/Collision/Shape/PlaneShape.h:98</see>
/// <br/>
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &amp;ioContext, const AABox &amp;inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetTrianglesStart
/// </para>
/// </remarks>
public void GetTrianglesStart(ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale) => Jolt.PInvoke.PlaneShape_GetTrianglesStart(this, ref context, box, positionCOM, rotation, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L104">Jolt/Physics/Collision/Shape/PlaneShape.h:104</see>
/// <br/>
/// <c>virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &amp;inSurface, float &amp;outTotalVolume, float &amp;outSubmergedVolume, Vec3 &amp;outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubmergedVolume
/// </para>
/// </remarks>
public void GetSubmergedVolume(float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset) => Jolt.PInvoke.PlaneShape_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/PlaneShape.h#L107">Jolt/Physics/Collision/Shape/PlaneShape.h:107</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape
/// </para>
/// </remarks>
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.PlaneShape_SaveBinaryState(this, stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L115">Jolt/Physics/Collision/Shape/PlaneShape.h:115</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetVolume
/// </para>
/// </remarks>
public float GetVolume() => Jolt.PInvoke.PlaneShape_GetVolume(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L118">Jolt/Physics/Collision/Shape/PlaneShape.h:118</see>
/// <br/>
/// <c>void SetMaterial(const PhysicsMaterial *inMaterial)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Material of the shape
/// </para>
/// </remarks>
public void SetMaterial(PhysicsMaterial material) => Jolt.PInvoke.PlaneShape_SetMaterial(this, material);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L119">Jolt/Physics/Collision/Shape/PlaneShape.h:119</see>
/// <br/>
/// <c>const PhysicsMaterial * GetMaterial() const</c>
/// </para>
/// </summary>
public PhysicsMaterial GetMaterial() => Jolt.PInvoke.PlaneShape_GetMaterial_2(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L122">Jolt/Physics/Collision/Shape/PlaneShape.h:122</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.PlaneShape_sRegister();
public void AddRef() => Jolt.PInvoke.PlaneShape_AddRef(this);
public void Release() => Jolt.PInvoke.PlaneShape_Release(this);
public uint GetRefCount() => Jolt.PInvoke.PlaneShape_GetRefCount(this);
public static implicit operator Shape(PlaneShape value) => Jolt.PInvoke.PlaneShape_AsShape(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}