//
// 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/CylinderShape.h:40
///
/// CylinderShape()
///
///
///
///
/// Constructor
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_Create")]
public static partial CylinderShape CylinderShape_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:45
///
/// CylinderShape(float inHalfHeight, float inRadius, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)
///
///
///
///
/// 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).
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_Create_2")]
public static partial CylinderShape CylinderShape_Create_2(float halfHeight, float radius, float convexRadius, PhysicsMaterial material);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:48
///
/// float GetHalfHeight() const
///
///
///
///
/// Get half height of cylinder
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetHalfHeight")]
public static partial float CylinderShape_GetHalfHeight(CylinderShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:51
///
/// float GetRadius() const
///
///
///
///
/// Get radius of cylinder
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetRadius")]
public static partial float CylinderShape_GetRadius(CylinderShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:57
///
/// virtual float GetInnerRadius() const override
///
///
///
///
/// See Shape::GetInnerRadius
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetInnerRadius")]
public static partial float CylinderShape_GetInnerRadius(CylinderShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:63
///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override
///
///
///
///
/// See Shape::GetSurfaceNormal
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetSurfaceNormal")]
public static partial float3 CylinderShape_GetSurfaceNormal(CylinderShape self, uint subShapeID, float3 localSurfacePosition);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:73
///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override
///
///
///
///
/// See Shape::Draw
///
///
[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);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:84
///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override
///
///
///
///
/// See: Shape::CollideSoftBodyVertices
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_CollideSoftBodyVertices")]
public static partial void CylinderShape_CollideSoftBodyVertices(CylinderShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:87
///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::GetTrianglesStart
///
///
[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);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:93
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See Shape
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_SaveBinaryState")]
public static partial void CylinderShape_SaveBinaryState(CylinderShape self, StreamOut stream);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:99
///
/// virtual float GetVolume() const override
///
///
///
///
/// See Shape::GetVolume
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetVolume")]
public static partial float CylinderShape_GetVolume(CylinderShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:102
///
/// float GetConvexRadius() const
///
///
///
///
/// Get the convex radius of this cylinder
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_GetConvexRadius")]
public static partial float CylinderShape_GetConvexRadius(CylinderShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:105
///
/// virtual bool IsValidScale(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::IsValidScale
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_IsValidScale")]
public static partial Brutal.Bool8 CylinderShape_IsValidScale(CylinderShape self, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:108
///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::MakeScaleValid
///
///
[LibraryImport("jolt", EntryPoint = "CylinderShape_MakeScaleValid")]
public static partial float3 CylinderShape_MakeScaleValid(CylinderShape self, float3 scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/CylinderShape.h:111
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
[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);
}
}
}