//
// 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/TriangleShape.h:40
///
/// TriangleShape()
///
///
///
///
/// Constructor
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_Create")]
public static partial TriangleShape TriangleShape_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:45
///
/// TriangleShape(Vec3Arg inV1, Vec3Arg inV2, Vec3Arg inV3, float inConvexRadius = 0.0f, const PhysicsMaterial *inMaterial = nullptr)
///
///
///
///
/// Create a triangle with points (inV1, inV2, inV3) (counter clockwise) and convex radius inConvexRadius.
/// Note that the convex radius is currently only used for shape vs shape collision, for all other purposes the triangle is infinitely thin.
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_Create_2")]
public static partial TriangleShape TriangleShape_Create_2(float3 v1, float3 v2, float3 v3, float convexRadius, PhysicsMaterial material);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:48
///
/// inline Vec3 GetVertex1() const
///
///
///
///
/// Get the vertices of the triangle
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetVertex1")]
public static partial float3 TriangleShape_GetVertex1(TriangleShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:49
///
/// inline Vec3 GetVertex2() const
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetVertex2")]
public static partial float3 TriangleShape_GetVertex2(TriangleShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:50
///
/// inline Vec3 GetVertex3() const
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetVertex3")]
public static partial float3 TriangleShape_GetVertex3(TriangleShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:53
///
/// float GetConvexRadius() const
///
///
///
///
/// Convex radius
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetConvexRadius")]
public static partial float TriangleShape_GetConvexRadius(TriangleShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:63
///
/// virtual float GetInnerRadius() const override
///
///
///
///
/// See Shape::GetInnerRadius
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetInnerRadius")]
public static partial float TriangleShape_GetInnerRadius(TriangleShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:69
///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override
///
///
///
///
/// See Shape::GetSurfaceNormal
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetSurfaceNormal")]
public static partial float3 TriangleShape_GetSurfaceNormal(TriangleShape self, uint subShapeID, float3 localSurfacePosition);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:78
///
/// 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 = "TriangleShape_GetSubmergedVolume")]
public static partial void TriangleShape_GetSubmergedVolume(TriangleShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:82
///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override
///
///
///
///
/// See Shape::Draw
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_Draw")]
public static partial void TriangleShape_Draw(TriangleShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:93
///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override
///
///
///
///
/// See: Shape::CollideSoftBodyVertices
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_CollideSoftBodyVertices")]
public static partial void TriangleShape_CollideSoftBodyVertices(TriangleShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:96
///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::GetTrianglesStart
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetTrianglesStart")]
public static partial void TriangleShape_GetTrianglesStart(TriangleShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:102
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See Shape
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_SaveBinaryState")]
public static partial void TriangleShape_SaveBinaryState(TriangleShape self, StreamOut stream);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:108
///
/// virtual float GetVolume() const override
///
///
///
///
/// See Shape::GetVolume
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetVolume")]
public static partial float TriangleShape_GetVolume(TriangleShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:111
///
/// virtual bool IsValidScale(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::IsValidScale
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_IsValidScale")]
public static partial Brutal.Bool8 TriangleShape_IsValidScale(TriangleShape self, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:114
///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::MakeScaleValid
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_MakeScaleValid")]
public static partial float3 TriangleShape_MakeScaleValid(TriangleShape self, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TriangleShape.h:117
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
[LibraryImport("jolt", EntryPoint = "TriangleShape_sRegister")]
public static partial void TriangleShape_sRegister();
[LibraryImport("jolt", EntryPoint = "TriangleShape_AddRef")]
public static partial void TriangleShape_AddRef(TriangleShape self);
[LibraryImport("jolt", EntryPoint = "TriangleShape_Release")]
public static partial void TriangleShape_Release(TriangleShape self);
[LibraryImport("jolt", EntryPoint = "TriangleShape_GetRefCount")]
public static partial uint TriangleShape_GetRefCount(TriangleShape self);
[LibraryImport("jolt", EntryPoint = "TriangleShape_AsConvexShape")]
public static partial ConvexShape TriangleShape_AsConvexShape(TriangleShape self);
[LibraryImport("jolt", EntryPoint = "TriangleShape_AsShape")]
public static partial Shape TriangleShape_AsShape(TriangleShape self);
}
}
}