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

487 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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L52">Jolt/Physics/Collision/Shape/CompoundShape.h:52</see>
/// <br/>
/// <c>class CompoundShape : public Shape</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Base class for a compound shape
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct CompoundShape : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L141">Jolt/Physics/Collision/Shape/CompoundShape.h:141</see>
/// <br/>
/// <c>struct SubShape</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 40)]
public struct SubShape
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L238">Jolt/Physics/Collision/Shape/CompoundShape.h:238</see>
/// <br/>
/// <c>RefConst&lt;Shape&gt; mShape</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public Shape mShape;
/// <summary>
/// <para>
/// Note: Position of center of mass of sub shape!
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L239">Jolt/Physics/Collision/Shape/CompoundShape.h:239</see>
/// <br/>
/// <c>Float3 mPositionCOM</c>
/// </para>
/// </summary>
[FieldOffset(8)]
public float3 mPositionCOM;
/// <summary>
/// <para>
/// Note: X, Y, Z of rotation quaternion - note we read 4 bytes beyond this so make sure there's
/// something there
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L240">Jolt/Physics/Collision/Shape/CompoundShape.h:240</see>
/// <br/>
/// <c>Float3 mRotation</c>
/// </para>
/// </summary>
[FieldOffset(20)]
public float3 mRotation;
/// <summary>
/// <para>
/// User data value (put here because it falls in padding bytes)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L241">Jolt/Physics/Collision/Shape/CompoundShape.h:241</see>
/// <br/>
/// <c>uint32 mUserData</c>
/// </para>
/// </summary>
[FieldOffset(32)]
public uint mUserData;
/// <summary>
/// <para>
/// If mRotation is close to identity (put here because it falls in padding bytes)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CompoundShape.h#L242">Jolt/Physics/Collision/Shape/CompoundShape.h:242</see>
/// <br/>
/// <c>bool mIsRotationIdentity</c>
/// </para>
/// </summary>
[FieldOffset(36)]
public Brutal.Bool8 mIsRotationIdentity;
}
/// <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>
public float3 GetCenterOfMass() => Jolt.PInvoke.CompoundShape_GetCenterOfMass(this);
/// <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>
public bool MustBeStatic() => Jolt.PInvoke.CompoundShape_MustBeStatic(this);
/// <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>
public uint GetSubShapeIDBitsRecursive() => Jolt.PInvoke.CompoundShape_GetSubShapeIDBitsRecursive(this);
/// <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>
public float GetInnerRadius() => Jolt.PInvoke.CompoundShape_GetInnerRadius(this);
/// <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>
public PhysicsMaterial GetMaterial(uint subShapeID) => Jolt.PInvoke.CompoundShape_GetMaterial(this, 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>
public Shape GetLeafShape(uint subShapeID, out uint remainder) => Jolt.PInvoke.CompoundShape_GetLeafShape(this, subShapeID, out 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>
public ulong GetSubShapeUserData(uint subShapeID) => Jolt.PInvoke.CompoundShape_GetSubShapeUserData(this, 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>
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.CompoundShape_GetSurfaceNormal(this, subShapeID, 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>
public void GetSubmergedVolume(float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset) => Jolt.PInvoke.CompoundShape_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/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>
public void Draw(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool useMaterialColors, bool drawWireframe) => Jolt.PInvoke.CompoundShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, 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>
public void DrawGetSupportFunction(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool drawSupportDirection) => Jolt.PInvoke.CompoundShape_DrawGetSupportFunction(this, renderer, centerOfMassTransform, scale, color, 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>
public void DrawGetSupportingFace(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale) => Jolt.PInvoke.CompoundShape_DrawGetSupportingFace(this, renderer, centerOfMassTransform, 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>
public void CollideSoftBodyVertices(float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex) => Jolt.PInvoke.CompoundShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, 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>
public void GetTrianglesStart(ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale) => Jolt.PInvoke.CompoundShape_GetTrianglesStart(this, ref context, box, positionCOM, rotation, 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>
public unsafe int GetIntersectingSubShapes(AABox box, Ptr<uint> subShapeIndices, int maxSubShapeIndices) => Jolt.PInvoke.CompoundShape_GetIntersectingSubShapes(this, box, subShapeIndices, 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>
public unsafe int GetIntersectingSubShapes(OrientedBox box, Ptr<uint> subShapeIndices, int maxSubShapeIndices) => Jolt.PInvoke.CompoundShape_GetIntersectingSubShapes_2(this, box, subShapeIndices, 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>
public uint GetNumSubShapes() => Jolt.PInvoke.CompoundShape_GetNumSubShapes(this);
/// <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>
public uint GetCompoundUserData(uint idx) => Jolt.PInvoke.CompoundShape_GetCompoundUserData(this, 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>
public void SetCompoundUserData(uint idx, uint userData) => Jolt.PInvoke.CompoundShape_SetCompoundUserData(this, idx, 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>
public bool IsSubShapeIDValid(uint subShapeID) => Jolt.PInvoke.CompoundShape_IsSubShapeIDValid(this, 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>
public uint GetSubShapeIndexFromID(uint subShapeID, out uint remainder) => Jolt.PInvoke.CompoundShape_GetSubShapeIndexFromID(this, subShapeID, out 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>
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.CompoundShape_SaveBinaryState(this, 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>
public float GetVolume() => Jolt.PInvoke.CompoundShape_GetVolume(this);
/// <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>
public bool IsValidScale(float3 scale) => Jolt.PInvoke.CompoundShape_IsValidScale(this, 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>
public float3 MakeScaleValid(float3 scale) => Jolt.PInvoke.CompoundShape_MakeScaleValid(this, 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>
public static void sRegister() => Jolt.PInvoke.CompoundShape_sRegister();
public void AddRef() => Jolt.PInvoke.CompoundShape_AddRef(this);
public void Release() => Jolt.PInvoke.CompoundShape_Release(this);
public uint GetRefCount() => Jolt.PInvoke.CompoundShape_GetRefCount(this);
public static implicit operator Shape(CompoundShape value) => Jolt.PInvoke.CompoundShape_AsShape(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}