// // 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/CapsuleShape.h:43 ///
/// CapsuleShape() ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_Create")] public static partial CapsuleShape CapsuleShape_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:47 ///
/// CapsuleShape(float inHalfHeightOfCylinder, float inRadius, const PhysicsMaterial *inMaterial = nullptr) ///
///
/// /// /// Create a capsule centered around the origin with one sphere cap at (0, -inHalfHeightOfCylinder, 0) /// and the other at (0, inHalfHeightOfCylinder, 0) /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_Create_2")] public static partial CapsuleShape CapsuleShape_Create_2(float halfHeightOfCylinder, float radius, PhysicsMaterial material); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:50 ///
/// float GetRadius() const ///
///
/// /// /// Radius of the cylinder /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_GetRadius")] public static partial float CapsuleShape_GetRadius(CapsuleShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:53 ///
/// float GetHalfHeightOfCylinder() const ///
///
/// /// /// Get half of the height of the cylinder /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_GetHalfHeightOfCylinder")] public static partial float CapsuleShape_GetHalfHeightOfCylinder(CapsuleShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:63 ///
/// virtual float GetInnerRadius() const override ///
///
/// /// /// See Shape::GetInnerRadius /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_GetInnerRadius")] public static partial float CapsuleShape_GetInnerRadius(CapsuleShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:69 ///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override ///
///
/// /// /// See Shape::GetSurfaceNormal /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_GetSurfaceNormal")] public static partial float3 CapsuleShape_GetSurfaceNormal(CapsuleShape self, uint subShapeID, float3 localSurfacePosition); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:79 ///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override ///
///
/// /// /// See Shape::Draw /// /// [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); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:90 ///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override ///
///
/// /// /// See: Shape::CollideSoftBodyVertices /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_CollideSoftBodyVertices")] public static partial void CapsuleShape_CollideSoftBodyVertices(CapsuleShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:93 ///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override ///
///
/// /// /// See Shape::GetTrianglesStart /// /// [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); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:99 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See Shape /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_SaveBinaryState")] public static partial void CapsuleShape_SaveBinaryState(CapsuleShape self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:105 ///
/// virtual float GetVolume() const override ///
///
/// /// /// See Shape::GetVolume /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_GetVolume")] public static partial float CapsuleShape_GetVolume(CapsuleShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:108 ///
/// virtual bool IsValidScale(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::IsValidScale /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_IsValidScale")] public static partial Brutal.Bool8 CapsuleShape_IsValidScale(CapsuleShape self, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:111 ///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::MakeScaleValid /// /// [LibraryImport("jolt", EntryPoint = "CapsuleShape_MakeScaleValid")] public static partial float3 CapsuleShape_MakeScaleValid(CapsuleShape self, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/CapsuleShape.h:114 ///
/// static void sRegister() ///
///
/// /// /// Register shape functions with the registry /// /// [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); } } }