// // 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/SphereShape.h:37 ///
/// SphereShape() ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_Create")] public static partial SphereShape SphereShape_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:41 ///
/// explicit SphereShape(float inRadius, const PhysicsMaterial *inMaterial = nullptr) ///
///
/// /// /// Create a sphere with radius inRadius /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_Create_2")] public static partial SphereShape SphereShape_Create_2(float radius, PhysicsMaterial material); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:44 ///
/// float GetRadius() const ///
///
/// /// /// Radius of the sphere /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_GetRadius")] public static partial float SphereShape_GetRadius(SphereShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:54 ///
/// virtual float GetInnerRadius() const override ///
///
/// /// /// See Shape::GetInnerRadius /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_GetInnerRadius")] public static partial float SphereShape_GetInnerRadius(SphereShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:60 ///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override ///
///
/// /// /// See Shape::GetSurfaceNormal /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_GetSurfaceNormal")] public static partial float3 SphereShape_GetSurfaceNormal(SphereShape self, uint subShapeID, float3 localSurfacePosition); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:69 ///
/// virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override ///
///
/// /// /// See Shape::GetSubmergedVolume /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_GetSubmergedVolume")] public static partial void SphereShape_GetSubmergedVolume(SphereShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.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 = "SphereShape_Draw")] public static partial void SphereShape_Draw(SphereShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:84 ///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override ///
///
/// /// /// See: Shape::CollideSoftBodyVertices /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_CollideSoftBodyVertices")] public static partial void SphereShape_CollideSoftBodyVertices(SphereShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:87 ///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override ///
///
/// /// /// See Shape::GetTrianglesStart /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_GetTrianglesStart")] public static partial void SphereShape_GetTrianglesStart(SphereShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:93 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See Shape /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_SaveBinaryState")] public static partial void SphereShape_SaveBinaryState(SphereShape self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:99 ///
/// virtual float GetVolume() const override ///
///
/// /// /// See Shape::GetVolume /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_GetVolume")] public static partial float SphereShape_GetVolume(SphereShape self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:102 ///
/// virtual bool IsValidScale(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::IsValidScale /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_IsValidScale")] public static partial Brutal.Bool8 SphereShape_IsValidScale(SphereShape self, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:105 ///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::MakeScaleValid /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_MakeScaleValid")] public static partial float3 SphereShape_MakeScaleValid(SphereShape self, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/SphereShape.h:108 ///
/// static void sRegister() ///
///
/// /// /// Register shape functions with the registry /// /// [LibraryImport("jolt", EntryPoint = "SphereShape_sRegister")] public static partial void SphereShape_sRegister(); [LibraryImport("jolt", EntryPoint = "SphereShape_AddRef")] public static partial void SphereShape_AddRef(SphereShape self); [LibraryImport("jolt", EntryPoint = "SphereShape_Release")] public static partial void SphereShape_Release(SphereShape self); [LibraryImport("jolt", EntryPoint = "SphereShape_GetRefCount")] public static partial uint SphereShape_GetRefCount(SphereShape self); [LibraryImport("jolt", EntryPoint = "SphereShape_AsConvexShape")] public static partial ConvexShape SphereShape_AsConvexShape(SphereShape self); [LibraryImport("jolt", EntryPoint = "SphereShape_AsShape")] public static partial Shape SphereShape_AsShape(SphereShape self); } } }