// // 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/BoxShape.h:39 ///
/// BoxShape() ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_Create")] public static partial BoxShape BoxShape_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:44 ///
/// explicit BoxShape(Vec3Arg inHalfExtent, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr) ///
///
/// /// /// Create a box with half edge length inHalfExtent and convex radius inConvexRadius. /// (internally the convex radius will be subtracted from the half extent so the total box will not grow with the convex radius). /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_Create_2")] public static partial BoxShape BoxShape_Create_2(float3 halfExtent, float convexRadius, PhysicsMaterial material); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:47 ///
/// Vec3 GetHalfExtent() const ///
///
/// /// /// Get half extent of box /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_GetHalfExtent")] public static partial float3 BoxShape_GetHalfExtent(BoxShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:53 ///
/// virtual float GetInnerRadius() const override ///
///
/// /// /// See Shape::GetInnerRadius /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_GetInnerRadius")] public static partial float BoxShape_GetInnerRadius(BoxShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:59 ///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override ///
///
/// /// /// See Shape::GetSurfaceNormal /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_GetSurfaceNormal")] public static partial float3 BoxShape_GetSurfaceNormal(BoxShape self, uint subShapeID, float3 localSurfacePosition); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:69 ///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override ///
///
/// /// /// See Shape::Draw /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_Draw")] public static partial void BoxShape_Draw(BoxShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:80 ///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override ///
///
/// /// /// See: Shape::CollideSoftBodyVertices /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_CollideSoftBodyVertices")] public static partial void BoxShape_CollideSoftBodyVertices(BoxShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:83 ///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override ///
///
/// /// /// See Shape::GetTrianglesStart /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_GetTrianglesStart")] public static partial void BoxShape_GetTrianglesStart(BoxShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:89 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See Shape /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_SaveBinaryState")] public static partial void BoxShape_SaveBinaryState(BoxShape self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:95 ///
/// virtual float GetVolume() const override ///
///
/// /// /// See Shape::GetVolume /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_GetVolume")] public static partial float BoxShape_GetVolume(BoxShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:98 ///
/// float GetConvexRadius() const ///
///
/// /// /// Get the convex radius of this box /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_GetConvexRadius")] public static partial float BoxShape_GetConvexRadius(BoxShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/BoxShape.h:101 ///
/// static void sRegister() ///
///
/// /// /// Register shape functions with the registry /// /// [LibraryImport("jolt", EntryPoint = "BoxShape_sRegister")] public static partial void BoxShape_sRegister(); [LibraryImport("jolt", EntryPoint = "BoxShape_AddRef")] public static partial void BoxShape_AddRef(BoxShape self); [LibraryImport("jolt", EntryPoint = "BoxShape_Release")] public static partial void BoxShape_Release(BoxShape self); [LibraryImport("jolt", EntryPoint = "BoxShape_GetRefCount")] public static partial uint BoxShape_GetRefCount(BoxShape self); [LibraryImport("jolt", EntryPoint = "BoxShape_AsConvexShape")] public static partial ConvexShape BoxShape_AsConvexShape(BoxShape self); [LibraryImport("jolt", EntryPoint = "BoxShape_AsShape")] public static partial Shape BoxShape_AsShape(BoxShape self); } } }