// // 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/MeshShape.h:90 ///
/// MeshShape() ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_Create")] public static partial MeshShape MeshShape_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:94 ///
/// virtual bool MustBeStatic() const override ///
///
/// /// /// See Shape::MustBeStatic /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_MustBeStatic")] public static partial Brutal.Bool8 MeshShape_MustBeStatic(MeshShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:100 ///
/// virtual uint GetSubShapeIDBitsRecursive() const override ///
///
/// /// /// See Shape::GetSubShapeIDBitsRecursive /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetSubShapeIDBitsRecursive")] public static partial uint MeshShape_GetSubShapeIDBitsRecursive(MeshShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:103 ///
/// virtual float GetInnerRadius() const override ///
///
/// /// /// See Shape::GetInnerRadius /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetInnerRadius")] public static partial float MeshShape_GetInnerRadius(MeshShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:109 ///
/// virtual const PhysicsMaterial * GetMaterial(const SubShapeID &inSubShapeID) const override ///
///
/// /// /// See Shape::GetMaterial /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetMaterial")] public static partial PhysicsMaterial MeshShape_GetMaterial(MeshShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:116 ///
/// uint GetMaterialIndex(const SubShapeID &inSubShapeID) const ///
///
/// /// /// Determine which material index a particular sub shape uses (note that if there are no materials this function will return 0 so check the array size) /// Note: This could for example be used to create a decorator shape around a mesh shape that overrides the GetMaterial call to replace a material with another material. /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetMaterialIndex")] public static partial uint MeshShape_GetMaterialIndex(MeshShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:119 ///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override ///
///
/// /// /// See Shape::GetSurfaceNormal /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetSurfaceNormal")] public static partial float3 MeshShape_GetSurfaceNormal(MeshShape self, uint subShapeID, float3 localSurfacePosition); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:126 ///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override ///
///
/// /// /// See Shape::Draw /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_Draw")] public static partial void MeshShape_Draw(MeshShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:139 ///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override ///
///
/// /// /// See: Shape::CollideSoftBodyVertices /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_CollideSoftBodyVertices")] public static partial void MeshShape_CollideSoftBodyVertices(MeshShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:142 ///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override ///
///
/// /// /// See Shape::GetTrianglesStart /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetTrianglesStart")] public static partial void MeshShape_GetTrianglesStart(MeshShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:148 ///
/// 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 = "MeshShape_GetSubmergedVolume")] public static partial void MeshShape_GetSubmergedVolume(MeshShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:151 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See Shape /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_SaveBinaryState")] public static partial void MeshShape_SaveBinaryState(MeshShape self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:159 ///
/// virtual float GetVolume() const override ///
///
/// /// /// See Shape::GetVolume /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetVolume")] public static partial float MeshShape_GetVolume(MeshShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:162 ///
/// uint32 GetTriangleUserData(const SubShapeID &inSubShapeID) const ///
///
/// /// /// When MeshShape::mPerTriangleUserData is true, this function can be used to retrieve the user data /// that was stored in the mesh shape. /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_GetTriangleUserData")] public static partial uint MeshShape_GetTriangleUserData(MeshShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/MeshShape.h:171 ///
/// static void sRegister() ///
///
/// /// /// Register shape functions with the registry /// /// [LibraryImport("jolt", EntryPoint = "MeshShape_sRegister")] public static partial void MeshShape_sRegister(); [LibraryImport("jolt", EntryPoint = "MeshShape_AddRef")] public static partial void MeshShape_AddRef(MeshShape self); [LibraryImport("jolt", EntryPoint = "MeshShape_Release")] public static partial void MeshShape_Release(MeshShape self); [LibraryImport("jolt", EntryPoint = "MeshShape_GetRefCount")] public static partial uint MeshShape_GetRefCount(MeshShape self); [LibraryImport("jolt", EntryPoint = "MeshShape_AsShape")] public static partial Shape MeshShape_AsShape(MeshShape self); } } }