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

426 lines
25 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
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L62">Jolt/Physics/Collision/Shape/CompoundShape.h:62</see>
/// <br/>
/// <c>virtual Vec3 GetCenterOfMass() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetCenterOfMass
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetCenterOfMass")]
public static partial float3 CompoundShape_GetCenterOfMass(CompoundShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L65">Jolt/Physics/Collision/Shape/CompoundShape.h:65</see>
/// <br/>
/// <c>virtual bool MustBeStatic() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::MustBeStatic
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_MustBeStatic")]
public static partial Brutal.Bool8 CompoundShape_MustBeStatic(CompoundShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L71">Jolt/Physics/Collision/Shape/CompoundShape.h:71</see>
/// <br/>
/// <c>virtual uint GetSubShapeIDBitsRecursive() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubShapeIDBitsRecursive
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetSubShapeIDBitsRecursive")]
public static partial uint CompoundShape_GetSubShapeIDBitsRecursive(CompoundShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L78">Jolt/Physics/Collision/Shape/CompoundShape.h:78</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetInnerRadius
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetInnerRadius")]
public static partial float CompoundShape_GetInnerRadius(CompoundShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L84">Jolt/Physics/Collision/Shape/CompoundShape.h:84</see>
/// <br/>
/// <c>virtual const PhysicsMaterial * GetMaterial(const SubShapeID &amp;inSubShapeID) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetMaterial
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetMaterial")]
public static partial PhysicsMaterial CompoundShape_GetMaterial(CompoundShape self, uint subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L87">Jolt/Physics/Collision/Shape/CompoundShape.h:87</see>
/// <br/>
/// <c>virtual const Shape * GetLeafShape(const SubShapeID &amp;inSubShapeID, SubShapeID &amp;outRemainder) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetLeafShape
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetLeafShape")]
public static partial Shape CompoundShape_GetLeafShape(CompoundShape self, uint subShapeID, out uint remainder);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L90">Jolt/Physics/Collision/Shape/CompoundShape.h:90</see>
/// <br/>
/// <c>virtual uint64 GetSubShapeUserData(const SubShapeID &amp;inSubShapeID) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubShapeUserData
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetSubShapeUserData")]
public static partial ulong CompoundShape_GetSubShapeUserData(CompoundShape self, uint subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L96">Jolt/Physics/Collision/Shape/CompoundShape.h:96</see>
/// <br/>
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &amp;inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSurfaceNormal
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetSurfaceNormal")]
public static partial float3 CompoundShape_GetSurfaceNormal(CompoundShape self, uint subShapeID, float3 localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L102">Jolt/Physics/Collision/Shape/CompoundShape.h:102</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>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetSubmergedVolume")]
public static partial void CompoundShape_GetSubmergedVolume(CompoundShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L106">Jolt/Physics/Collision/Shape/CompoundShape.h:106</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>
[LibraryImport("jolt", EntryPoint = "CompoundShape_Draw")]
public static partial void CompoundShape_Draw(CompoundShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L109">Jolt/Physics/Collision/Shape/CompoundShape.h:109</see>
/// <br/>
/// <c>virtual void DrawGetSupportFunction(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inDrawSupportDirection) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::DrawGetSupportFunction
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_DrawGetSupportFunction")]
public static partial void CompoundShape_DrawGetSupportFunction(CompoundShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 drawSupportDirection);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L112">Jolt/Physics/Collision/Shape/CompoundShape.h:112</see>
/// <br/>
/// <c>virtual void DrawGetSupportingFace(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::DrawGetSupportingFace
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_DrawGetSupportingFace")]
public static partial void CompoundShape_DrawGetSupportingFace(CompoundShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L116">Jolt/Physics/Collision/Shape/CompoundShape.h:116</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>
[LibraryImport("jolt", EntryPoint = "CompoundShape_CollideSoftBodyVertices")]
public static partial void CompoundShape_CollideSoftBodyVertices(CompoundShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L122">Jolt/Physics/Collision/Shape/CompoundShape.h:122</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>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetTrianglesStart")]
public static partial void CompoundShape_GetTrianglesStart(CompoundShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L132">Jolt/Physics/Collision/Shape/CompoundShape.h:132</see>
/// <br/>
/// <c>virtual int GetIntersectingSubShapes(const AABox &amp;inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Get which sub shape's bounding boxes overlap with an axis aligned box
/// @param inBox The axis aligned box to test against (relative to the center of mass of this shape)
/// @param outSubShapeIndices Buffer where to place the indices of the sub shapes that intersect
/// @param inMaxSubShapeIndices How many indices will fit in the buffer (normally you'd provide a buffer of GetNumSubShapes() indices)
/// @return How many indices were placed in outSubShapeIndices
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetIntersectingSubShapes")]
public static partial int CompoundShape_GetIntersectingSubShapes(CompoundShape self, AABox box, uint* subShapeIndices, int maxSubShapeIndices);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L139">Jolt/Physics/Collision/Shape/CompoundShape.h:139</see>
/// <br/>
/// <c>virtual int GetIntersectingSubShapes(const OrientedBox &amp;inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Get which sub shape's bounding boxes overlap with an axis aligned box
/// @param inBox The axis aligned box to test against (relative to the center of mass of this shape)
/// @param outSubShapeIndices Buffer where to place the indices of the sub shapes that intersect
/// @param inMaxSubShapeIndices How many indices will fit in the buffer (normally you'd provide a buffer of GetNumSubShapes() indices)
/// @return How many indices were placed in outSubShapeIndices
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetIntersectingSubShapes_2")]
public static partial int CompoundShape_GetIntersectingSubShapes_2(CompoundShape self, OrientedBox box, uint* subShapeIndices, int maxSubShapeIndices);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L254">Jolt/Physics/Collision/Shape/CompoundShape.h:254</see>
/// <br/>
/// <c>uint GetNumSubShapes() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the total number of sub shapes
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetNumSubShapes")]
public static partial uint CompoundShape_GetNumSubShapes(CompoundShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L260">Jolt/Physics/Collision/Shape/CompoundShape.h:260</see>
/// <br/>
/// <c>uint32 GetCompoundUserData(uint inIdx) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the user data associated with a shape in this compound
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetCompoundUserData")]
public static partial uint CompoundShape_GetCompoundUserData(CompoundShape self, uint idx);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L263">Jolt/Physics/Collision/Shape/CompoundShape.h:263</see>
/// <br/>
/// <c>void SetCompoundUserData(uint inIdx, uint32 inUserData)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the user data associated with a shape in this compound
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_SetCompoundUserData")]
public static partial void CompoundShape_SetCompoundUserData(CompoundShape self, uint idx, uint userData);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L268">Jolt/Physics/Collision/Shape/CompoundShape.h:268</see>
/// <br/>
/// <c>inline bool IsSubShapeIDValid(SubShapeID inSubShapeID) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Check if a sub shape ID is still valid for this shape
/// @param inSubShapeID Sub shape id that indicates the leaf shape relative to this shape
/// @return True if the ID is valid, false if not
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_IsSubShapeIDValid")]
public static partial Brutal.Bool8 CompoundShape_IsSubShapeIDValid(CompoundShape self, uint subShapeID);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L278">Jolt/Physics/Collision/Shape/CompoundShape.h:278</see>
/// <br/>
/// <c>inline uint32 GetSubShapeIndexFromID(SubShapeID inSubShapeID, SubShapeID &amp;outRemainder) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Convert SubShapeID to sub shape index
/// @param inSubShapeID Sub shape id that indicates the leaf shape relative to this shape
/// @param outRemainder This is the sub shape ID for the sub shape of the compound after popping off the index
/// @return The index of the sub shape of this compound
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetSubShapeIndexFromID")]
public static partial uint CompoundShape_GetSubShapeIndexFromID(CompoundShape self, uint subShapeID, out uint remainder);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L295">Jolt/Physics/Collision/Shape/CompoundShape.h:295</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_SaveBinaryState")]
public static partial void CompoundShape_SaveBinaryState(CompoundShape self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L303">Jolt/Physics/Collision/Shape/CompoundShape.h:303</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetVolume
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetVolume")]
public static partial float CompoundShape_GetVolume(CompoundShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L306">Jolt/Physics/Collision/Shape/CompoundShape.h:306</see>
/// <br/>
/// <c>virtual bool IsValidScale(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::IsValidScale
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_IsValidScale")]
public static partial Brutal.Bool8 CompoundShape_IsValidScale(CompoundShape self, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L309">Jolt/Physics/Collision/Shape/CompoundShape.h:309</see>
/// <br/>
/// <c>virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::MakeScaleValid
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_MakeScaleValid")]
public static partial float3 CompoundShape_MakeScaleValid(CompoundShape self, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L312">Jolt/Physics/Collision/Shape/CompoundShape.h:312</see>
/// <br/>
/// <c>static void sRegister()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register shape functions with the registry
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CompoundShape_sRegister")]
public static partial void CompoundShape_sRegister();
[LibraryImport("jolt", EntryPoint = "CompoundShape_AddRef")]
public static partial void CompoundShape_AddRef(CompoundShape self);
[LibraryImport("jolt", EntryPoint = "CompoundShape_Release")]
public static partial void CompoundShape_Release(CompoundShape self);
[LibraryImport("jolt", EntryPoint = "CompoundShape_GetRefCount")]
public static partial uint CompoundShape_GetRefCount(CompoundShape self);
[LibraryImport("jolt", EntryPoint = "CompoundShape_AsShape")]
public static partial Shape CompoundShape_AsShape(CompoundShape self);
}
}
}