mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
236 lines
13 KiB
C#
236 lines
13 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/CapsuleShape.h#L43">Jolt/Physics/Collision/Shape/CapsuleShape.h:43</see>
|
|
/// <br/>
|
|
/// <c>CapsuleShape()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_Create")]
|
|
public static partial CapsuleShape CapsuleShape_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L47">Jolt/Physics/Collision/Shape/CapsuleShape.h:47</see>
|
|
/// <br/>
|
|
/// <c>CapsuleShape(float inHalfHeightOfCylinder, float inRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Create a capsule centered around the origin with one sphere cap at (0, -inHalfHeightOfCylinder, 0)
|
|
/// and the other at (0, inHalfHeightOfCylinder, 0)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_Create_2")]
|
|
public static partial CapsuleShape CapsuleShape_Create_2(float halfHeightOfCylinder, float radius, PhysicsMaterial material);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L50">Jolt/Physics/Collision/Shape/CapsuleShape.h:50</see>
|
|
/// <br/>
|
|
/// <c>float GetRadius() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Radius of the cylinder
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_GetRadius")]
|
|
public static partial float CapsuleShape_GetRadius(CapsuleShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L53">Jolt/Physics/Collision/Shape/CapsuleShape.h:53</see>
|
|
/// <br/>
|
|
/// <c>float GetHalfHeightOfCylinder() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get half of the height of the cylinder
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_GetHalfHeightOfCylinder")]
|
|
public static partial float CapsuleShape_GetHalfHeightOfCylinder(CapsuleShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L63">Jolt/Physics/Collision/Shape/CapsuleShape.h:63</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetInnerRadius() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetInnerRadius
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_GetInnerRadius")]
|
|
public static partial float CapsuleShape_GetInnerRadius(CapsuleShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L69">Jolt/Physics/Collision/Shape/CapsuleShape.h:69</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 = "CapsuleShape_GetSurfaceNormal")]
|
|
public static partial float3 CapsuleShape_GetSurfaceNormal(CapsuleShape self, uint subShapeID, float3 localSurfacePosition);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L79">Jolt/Physics/Collision/Shape/CapsuleShape.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 = "CapsuleShape_Draw")]
|
|
public static partial void CapsuleShape_Draw(CapsuleShape 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/CapsuleShape.h#L90">Jolt/Physics/Collision/Shape/CapsuleShape.h:90</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 = "CapsuleShape_CollideSoftBodyVertices")]
|
|
public static partial void CapsuleShape_CollideSoftBodyVertices(CapsuleShape 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/CapsuleShape.h#L93">Jolt/Physics/Collision/Shape/CapsuleShape.h:93</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 = "CapsuleShape_GetTrianglesStart")]
|
|
public static partial void CapsuleShape_GetTrianglesStart(CapsuleShape 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/CapsuleShape.h#L99">Jolt/Physics/Collision/Shape/CapsuleShape.h:99</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_SaveBinaryState")]
|
|
public static partial void CapsuleShape_SaveBinaryState(CapsuleShape self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L105">Jolt/Physics/Collision/Shape/CapsuleShape.h:105</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetVolume() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetVolume
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_GetVolume")]
|
|
public static partial float CapsuleShape_GetVolume(CapsuleShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L108">Jolt/Physics/Collision/Shape/CapsuleShape.h:108</see>
|
|
/// <br/>
|
|
/// <c>virtual bool IsValidScale(Vec3Arg inScale) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::IsValidScale
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_IsValidScale")]
|
|
public static partial Brutal.Bool8 CapsuleShape_IsValidScale(CapsuleShape self, float3 scale);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L111">Jolt/Physics/Collision/Shape/CapsuleShape.h:111</see>
|
|
/// <br/>
|
|
/// <c>virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::MakeScaleValid
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_MakeScaleValid")]
|
|
public static partial float3 CapsuleShape_MakeScaleValid(CapsuleShape self, float3 scale);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CapsuleShape.h#L114">Jolt/Physics/Collision/Shape/CapsuleShape.h:114</see>
|
|
/// <br/>
|
|
/// <c>static void sRegister()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Register shape functions with the registry
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_sRegister")]
|
|
public static partial void CapsuleShape_sRegister();
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_AddRef")]
|
|
public static partial void CapsuleShape_AddRef(CapsuleShape self);
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_Release")]
|
|
public static partial void CapsuleShape_Release(CapsuleShape self);
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_GetRefCount")]
|
|
public static partial uint CapsuleShape_GetRefCount(CapsuleShape self);
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_AsConvexShape")]
|
|
public static partial ConvexShape CapsuleShape_AsConvexShape(CapsuleShape self);
|
|
[LibraryImport("jolt", EntryPoint = "CapsuleShape_AsShape")]
|
|
public static partial Shape CapsuleShape_AsShape(CapsuleShape self);
|
|
}
|
|
}
|
|
}
|