//
// 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/ConvexHullShape.h:50
///
/// ConvexHullShape()
///
///
///
///
/// Constructor
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_Create")]
public static partial ConvexHullShape ConvexHullShape_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:54
///
/// virtual Vec3 GetCenterOfMass() const override
///
///
///
///
/// See Shape::GetCenterOfMass
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetCenterOfMass")]
public static partial float3 ConvexHullShape_GetCenterOfMass(ConvexHullShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:60
///
/// virtual float GetInnerRadius() const override
///
///
///
///
/// See Shape::GetInnerRadius
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetInnerRadius")]
public static partial float ConvexHullShape_GetInnerRadius(ConvexHullShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:66
///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override
///
///
///
///
/// See Shape::GetSurfaceNormal
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetSurfaceNormal")]
public static partial float3 ConvexHullShape_GetSurfaceNormal(ConvexHullShape self, uint subShapeID, float3 localSurfacePosition);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:75
///
/// 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 = "ConvexHullShape_GetSubmergedVolume")]
public static partial void ConvexHullShape_GetSubmergedVolume(ConvexHullShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:79
///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override
///
///
///
///
/// See Shape::Draw
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_Draw")]
public static partial void ConvexHullShape_Draw(ConvexHullShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:82
///
/// void DrawShrunkShape(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale) const
///
///
///
///
/// Debugging helper draw function that draws how all points are moved when a shape is shrunk by the
/// convex radius
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_DrawShrunkShape")]
public static partial void ConvexHullShape_DrawShrunkShape(ConvexHullShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:93
///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override
///
///
///
///
/// See: Shape::CollideSoftBodyVertices
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_CollideSoftBodyVertices")]
public static partial void ConvexHullShape_CollideSoftBodyVertices(ConvexHullShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:96
///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::GetTrianglesStart
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetTrianglesStart")]
public static partial void ConvexHullShape_GetTrianglesStart(ConvexHullShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:102
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See Shape
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_SaveBinaryState")]
public static partial void ConvexHullShape_SaveBinaryState(ConvexHullShape self, StreamOut stream);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:108
///
/// virtual float GetVolume() const override
///
///
///
///
/// See Shape::GetVolume
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetVolume")]
public static partial float ConvexHullShape_GetVolume(ConvexHullShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:111
///
/// float GetConvexRadius() const
///
///
///
///
/// Get the convex radius of this convex hull
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetConvexRadius")]
public static partial float ConvexHullShape_GetConvexRadius(ConvexHullShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:117
///
/// inline uint GetNumPoints() const
///
///
///
///
/// Get the number of vertices in this convex hull
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetNumPoints")]
public static partial uint ConvexHullShape_GetNumPoints(ConvexHullShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:120
///
/// inline Vec3 GetPoint(uint inIndex) const
///
///
///
///
/// Get a vertex of this convex hull relative to the center of mass
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetPoint")]
public static partial float3 ConvexHullShape_GetPoint(ConvexHullShape self, uint index);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:123
///
/// inline uint GetNumFaces() const
///
///
///
///
/// Get the number of faces in this convex hull
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetNumFaces")]
public static partial uint ConvexHullShape_GetNumFaces(ConvexHullShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:126
///
/// inline uint GetNumVerticesInFace(uint inFaceIndex) const
///
///
///
///
/// Get the number of vertices in a face
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetNumVerticesInFace")]
public static partial uint ConvexHullShape_GetNumVerticesInFace(ConvexHullShape self, uint faceIndex);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:133
///
/// inline uint GetFaceVertices(uint inFaceIndex, uint inMaxVertices, uint *outVertices) const
///
///
///
///
/// Get the vertices indices of a face
/// @param inFaceIndex Index of the face.
/// @param inMaxVertices Maximum number of vertices to return.
/// @param outVertices Array of vertices indices, must be at least inMaxVertices in size, the vertices are returned in counter clockwise order and the positions can be obtained using GetPoint(index).
/// @return Number of vertices in face, if this is bigger than inMaxVertices, not all vertices were retrieved.
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetFaceVertices")]
public static partial uint ConvexHullShape_GetFaceVertices(ConvexHullShape self, uint faceIndex, uint maxVertices, uint* vertices);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ConvexHullShape.h:144
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_sRegister")]
public static partial void ConvexHullShape_sRegister();
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_AddRef")]
public static partial void ConvexHullShape_AddRef(ConvexHullShape self);
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_Release")]
public static partial void ConvexHullShape_Release(ConvexHullShape self);
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetRefCount")]
public static partial uint ConvexHullShape_GetRefCount(ConvexHullShape self);
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_AsConvexShape")]
public static partial ConvexShape ConvexHullShape_AsConvexShape(ConvexHullShape self);
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_AsShape")]
public static partial Shape ConvexHullShape_AsShape(ConvexHullShape self);
}
}
}