brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/CylinderShape.gen.cs
2026-10-15 14:12:02 +13:00

251 lines
14 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/CylinderShape.h#L40">Jolt/Physics/Collision/Shape/CylinderShape.h:40</see>
/// <br/>
/// <c>CylinderShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_Create")]
public static partial CylinderShape CylinderShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L45">Jolt/Physics/Collision/Shape/CylinderShape.h:45</see>
/// <br/>
/// <c>CylinderShape(float inHalfHeight, float inRadius, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Create a shape centered around the origin with one top at (0, -inHalfHeight, 0) and the other at (0, inHalfHeight, 0) and radius inRadius.
/// (internally the convex radius will be subtracted from the cylinder the total cylinder will not grow with the convex radius, but the edges of the cylinder will be rounded a bit).
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_Create_2")]
public static partial CylinderShape CylinderShape_Create_2(float halfHeight, float radius, float convexRadius, PhysicsMaterial material);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L48">Jolt/Physics/Collision/Shape/CylinderShape.h:48</see>
/// <br/>
/// <c>float GetHalfHeight() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get half height of cylinder
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetHalfHeight")]
public static partial float CylinderShape_GetHalfHeight(CylinderShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L51">Jolt/Physics/Collision/Shape/CylinderShape.h:51</see>
/// <br/>
/// <c>float GetRadius() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get radius of cylinder
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetRadius")]
public static partial float CylinderShape_GetRadius(CylinderShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L57">Jolt/Physics/Collision/Shape/CylinderShape.h:57</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetInnerRadius
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetInnerRadius")]
public static partial float CylinderShape_GetInnerRadius(CylinderShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L63">Jolt/Physics/Collision/Shape/CylinderShape.h:63</see>
/// <br/>
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &amp;inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSurfaceNormal
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetSurfaceNormal")]
public static partial float3 CylinderShape_GetSurfaceNormal(CylinderShape self, uint subShapeID, float3 localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L73">Jolt/Physics/Collision/Shape/CylinderShape.h:73</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 = "CylinderShape_Draw")]
public static partial void CylinderShape_Draw(CylinderShape 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/CylinderShape.h#L84">Jolt/Physics/Collision/Shape/CylinderShape.h:84</see>
/// <br/>
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &amp;inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: Shape::CollideSoftBodyVertices
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_CollideSoftBodyVertices")]
public static partial void CylinderShape_CollideSoftBodyVertices(CylinderShape 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/CylinderShape.h#L87">Jolt/Physics/Collision/Shape/CylinderShape.h:87</see>
/// <br/>
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &amp;ioContext, const AABox &amp;inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetTrianglesStart
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetTrianglesStart")]
public static partial void CylinderShape_GetTrianglesStart(CylinderShape 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/CylinderShape.h#L93">Jolt/Physics/Collision/Shape/CylinderShape.h:93</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_SaveBinaryState")]
public static partial void CylinderShape_SaveBinaryState(CylinderShape self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L99">Jolt/Physics/Collision/Shape/CylinderShape.h:99</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetVolume
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetVolume")]
public static partial float CylinderShape_GetVolume(CylinderShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L102">Jolt/Physics/Collision/Shape/CylinderShape.h:102</see>
/// <br/>
/// <c>float GetConvexRadius() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the convex radius of this cylinder
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetConvexRadius")]
public static partial float CylinderShape_GetConvexRadius(CylinderShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L105">Jolt/Physics/Collision/Shape/CylinderShape.h:105</see>
/// <br/>
/// <c>virtual bool IsValidScale(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::IsValidScale
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_IsValidScale")]
public static partial Brutal.Bool8 CylinderShape_IsValidScale(CylinderShape self, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L108">Jolt/Physics/Collision/Shape/CylinderShape.h:108</see>
/// <br/>
/// <c>virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::MakeScaleValid
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_MakeScaleValid")]
public static partial float3 CylinderShape_MakeScaleValid(CylinderShape self, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/CylinderShape.h#L111">Jolt/Physics/Collision/Shape/CylinderShape.h:111</see>
/// <br/>
/// <c>static void sRegister()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register shape functions with the registry
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CylinderShape_sRegister")]
public static partial void CylinderShape_sRegister();
[LibraryImport("jolt", EntryPoint = "CylinderShape_AddRef")]
public static partial void CylinderShape_AddRef(CylinderShape self);
[LibraryImport("jolt", EntryPoint = "CylinderShape_Release")]
public static partial void CylinderShape_Release(CylinderShape self);
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetRefCount")]
public static partial uint CylinderShape_GetRefCount(CylinderShape self);
[LibraryImport("jolt", EntryPoint = "CylinderShape_AsConvexShape")]
public static partial ConvexShape CylinderShape_AsConvexShape(CylinderShape self);
[LibraryImport("jolt", EntryPoint = "CylinderShape_AsShape")]
public static partial Shape CylinderShape_AsShape(CylinderShape self);
}
}
}