// // 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 { /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:62 ///
/// virtual Vec3 GetCenterOfMass() const override ///
///
/// /// /// See Shape::GetCenterOfMass /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetCenterOfMass")] public static partial float3 CompoundShape_GetCenterOfMass(CompoundShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:65 ///
/// virtual bool MustBeStatic() const override ///
///
/// /// /// See Shape::MustBeStatic /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_MustBeStatic")] public static partial Brutal.Bool8 CompoundShape_MustBeStatic(CompoundShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:71 ///
/// virtual uint GetSubShapeIDBitsRecursive() const override ///
///
/// /// /// See Shape::GetSubShapeIDBitsRecursive /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetSubShapeIDBitsRecursive")] public static partial uint CompoundShape_GetSubShapeIDBitsRecursive(CompoundShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:78 ///
/// virtual float GetInnerRadius() const override ///
///
/// /// /// See Shape::GetInnerRadius /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetInnerRadius")] public static partial float CompoundShape_GetInnerRadius(CompoundShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:84 ///
/// virtual const PhysicsMaterial * GetMaterial(const SubShapeID &inSubShapeID) const override ///
///
/// /// /// See Shape::GetMaterial /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetMaterial")] public static partial PhysicsMaterial CompoundShape_GetMaterial(CompoundShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:87 ///
/// virtual const Shape * GetLeafShape(const SubShapeID &inSubShapeID, SubShapeID &outRemainder) const override ///
///
/// /// /// See Shape::GetLeafShape /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetLeafShape")] public static partial Shape CompoundShape_GetLeafShape(CompoundShape self, uint subShapeID, out uint remainder); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:90 ///
/// virtual uint64 GetSubShapeUserData(const SubShapeID &inSubShapeID) const override ///
///
/// /// /// See Shape::GetSubShapeUserData /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetSubShapeUserData")] public static partial ulong CompoundShape_GetSubShapeUserData(CompoundShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:96 ///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override ///
///
/// /// /// See Shape::GetSurfaceNormal /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetSurfaceNormal")] public static partial float3 CompoundShape_GetSurfaceNormal(CompoundShape self, uint subShapeID, float3 localSurfacePosition); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:102 ///
/// virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override ///
///
/// /// /// See Shape::GetSubmergedVolume /// /// [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); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:106 ///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override ///
///
/// /// /// See Shape::Draw /// /// [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); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:109 ///
/// virtual void DrawGetSupportFunction(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inDrawSupportDirection) const override ///
///
/// /// /// See Shape::DrawGetSupportFunction /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_DrawGetSupportFunction")] public static partial void CompoundShape_DrawGetSupportFunction(CompoundShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 drawSupportDirection); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:112 ///
/// virtual void DrawGetSupportingFace(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale) const override ///
///
/// /// /// See Shape::DrawGetSupportingFace /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_DrawGetSupportingFace")] public static partial void CompoundShape_DrawGetSupportingFace(CompoundShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:116 ///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override ///
///
/// /// /// See: Shape::CollideSoftBodyVertices /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_CollideSoftBodyVertices")] public static partial void CompoundShape_CollideSoftBodyVertices(CompoundShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:122 ///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override ///
///
/// /// /// See Shape::GetTrianglesStart /// /// [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); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:132 ///
/// virtual int GetIntersectingSubShapes(const AABox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const = 0 ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetIntersectingSubShapes")] public static partial int CompoundShape_GetIntersectingSubShapes(CompoundShape self, AABox box, uint* subShapeIndices, int maxSubShapeIndices); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:139 ///
/// virtual int GetIntersectingSubShapes(const OrientedBox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const = 0 ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetIntersectingSubShapes_2")] public static partial int CompoundShape_GetIntersectingSubShapes_2(CompoundShape self, OrientedBox box, uint* subShapeIndices, int maxSubShapeIndices); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:254 ///
/// uint GetNumSubShapes() const ///
///
/// /// /// Get the total number of sub shapes /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetNumSubShapes")] public static partial uint CompoundShape_GetNumSubShapes(CompoundShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:260 ///
/// uint32 GetCompoundUserData(uint inIdx) const ///
///
/// /// /// Get the user data associated with a shape in this compound /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetCompoundUserData")] public static partial uint CompoundShape_GetCompoundUserData(CompoundShape self, uint idx); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:263 ///
/// void SetCompoundUserData(uint inIdx, uint32 inUserData) ///
///
/// /// /// Set the user data associated with a shape in this compound /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_SetCompoundUserData")] public static partial void CompoundShape_SetCompoundUserData(CompoundShape self, uint idx, uint userData); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:268 ///
/// inline bool IsSubShapeIDValid(SubShapeID inSubShapeID) const ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_IsSubShapeIDValid")] public static partial Brutal.Bool8 CompoundShape_IsSubShapeIDValid(CompoundShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:278 ///
/// inline uint32 GetSubShapeIndexFromID(SubShapeID inSubShapeID, SubShapeID &outRemainder) const ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetSubShapeIndexFromID")] public static partial uint CompoundShape_GetSubShapeIndexFromID(CompoundShape self, uint subShapeID, out uint remainder); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:295 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See Shape /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_SaveBinaryState")] public static partial void CompoundShape_SaveBinaryState(CompoundShape self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:303 ///
/// virtual float GetVolume() const override ///
///
/// /// /// See Shape::GetVolume /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_GetVolume")] public static partial float CompoundShape_GetVolume(CompoundShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:306 ///
/// virtual bool IsValidScale(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::IsValidScale /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_IsValidScale")] public static partial Brutal.Bool8 CompoundShape_IsValidScale(CompoundShape self, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:309 ///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::MakeScaleValid /// /// [LibraryImport("jolt", EntryPoint = "CompoundShape_MakeScaleValid")] public static partial float3 CompoundShape_MakeScaleValid(CompoundShape self, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CompoundShape.h:312 ///
/// static void sRegister() ///
///
/// /// /// Register shape functions with the registry /// /// [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); } } }