mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
300 lines
17 KiB
C#
300 lines
17 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/ConvexHullShape.h#L50">Jolt/Physics/Collision/Shape/ConvexHullShape.h:50</see>
|
|
/// <br/>
|
|
/// <c>ConvexHullShape()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_Create")]
|
|
public static partial ConvexHullShape ConvexHullShape_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L54">Jolt/Physics/Collision/Shape/ConvexHullShape.h:54</see>
|
|
/// <br/>
|
|
/// <c>virtual Vec3 GetCenterOfMass() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetCenterOfMass
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetCenterOfMass")]
|
|
public static partial float3 ConvexHullShape_GetCenterOfMass(ConvexHullShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L60">Jolt/Physics/Collision/Shape/ConvexHullShape.h:60</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetInnerRadius() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetInnerRadius
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetInnerRadius")]
|
|
public static partial float ConvexHullShape_GetInnerRadius(ConvexHullShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L66">Jolt/Physics/Collision/Shape/ConvexHullShape.h:66</see>
|
|
/// <br/>
|
|
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetSurfaceNormal
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetSurfaceNormal")]
|
|
public static partial float3 ConvexHullShape_GetSurfaceNormal(ConvexHullShape self, uint subShapeID, float3 localSurfacePosition);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L75">Jolt/Physics/Collision/Shape/ConvexHullShape.h:75</see>
|
|
/// <br/>
|
|
/// <c>virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetSubmergedVolume
|
|
/// </para>
|
|
/// </remarks>
|
|
[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);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L79">Jolt/Physics/Collision/Shape/ConvexHullShape.h:79</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 = "ConvexHullShape_Draw")]
|
|
public static partial void ConvexHullShape_Draw(ConvexHullShape 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/ConvexHullShape.h#L82">Jolt/Physics/Collision/Shape/ConvexHullShape.h:82</see>
|
|
/// <br/>
|
|
/// <c>void DrawShrunkShape(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debugging helper draw function that draws how all points are moved when a shape is shrunk by the
|
|
/// convex radius
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_DrawShrunkShape")]
|
|
public static partial void ConvexHullShape_DrawShrunkShape(ConvexHullShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L93">Jolt/Physics/Collision/Shape/ConvexHullShape.h:93</see>
|
|
/// <br/>
|
|
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: Shape::CollideSoftBodyVertices
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_CollideSoftBodyVertices")]
|
|
public static partial void ConvexHullShape_CollideSoftBodyVertices(ConvexHullShape 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/ConvexHullShape.h#L96">Jolt/Physics/Collision/Shape/ConvexHullShape.h:96</see>
|
|
/// <br/>
|
|
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetTrianglesStart
|
|
/// </para>
|
|
/// </remarks>
|
|
[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);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L102">Jolt/Physics/Collision/Shape/ConvexHullShape.h:102</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_SaveBinaryState")]
|
|
public static partial void ConvexHullShape_SaveBinaryState(ConvexHullShape self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L108">Jolt/Physics/Collision/Shape/ConvexHullShape.h:108</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetVolume() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetVolume
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetVolume")]
|
|
public static partial float ConvexHullShape_GetVolume(ConvexHullShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L111">Jolt/Physics/Collision/Shape/ConvexHullShape.h:111</see>
|
|
/// <br/>
|
|
/// <c>float GetConvexRadius() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the convex radius of this convex hull
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetConvexRadius")]
|
|
public static partial float ConvexHullShape_GetConvexRadius(ConvexHullShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L117">Jolt/Physics/Collision/Shape/ConvexHullShape.h:117</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetNumPoints() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the number of vertices in this convex hull
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetNumPoints")]
|
|
public static partial uint ConvexHullShape_GetNumPoints(ConvexHullShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L120">Jolt/Physics/Collision/Shape/ConvexHullShape.h:120</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetPoint(uint inIndex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get a vertex of this convex hull relative to the center of mass
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetPoint")]
|
|
public static partial float3 ConvexHullShape_GetPoint(ConvexHullShape self, uint index);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L123">Jolt/Physics/Collision/Shape/ConvexHullShape.h:123</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetNumFaces() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the number of faces in this convex hull
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetNumFaces")]
|
|
public static partial uint ConvexHullShape_GetNumFaces(ConvexHullShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L126">Jolt/Physics/Collision/Shape/ConvexHullShape.h:126</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetNumVerticesInFace(uint inFaceIndex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the number of vertices in a face
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetNumVerticesInFace")]
|
|
public static partial uint ConvexHullShape_GetNumVerticesInFace(ConvexHullShape self, uint faceIndex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L133">Jolt/Physics/Collision/Shape/ConvexHullShape.h:133</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetFaceVertices(uint inFaceIndex, uint inMaxVertices, uint *outVertices) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "ConvexHullShape_GetFaceVertices")]
|
|
public static partial uint ConvexHullShape_GetFaceVertices(ConvexHullShape self, uint faceIndex, uint maxVertices, uint* vertices);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ConvexHullShape.h#L144">Jolt/Physics/Collision/Shape/ConvexHullShape.h:144</see>
|
|
/// <br/>
|
|
/// <c>static void sRegister()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Register shape functions with the registry
|
|
/// </para>
|
|
/// </remarks>
|
|
[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);
|
|
}
|
|
}
|
|
}
|