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

235 lines
13 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/SphereShape.h#L37">Jolt/Physics/Collision/Shape/SphereShape.h:37</see>
/// <br/>
/// <c>SphereShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "SphereShape_Create")]
public static partial SphereShape SphereShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L41">Jolt/Physics/Collision/Shape/SphereShape.h:41</see>
/// <br/>
/// <c>explicit SphereShape(float inRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Create a sphere with radius inRadius
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "SphereShape_Create_2")]
public static partial SphereShape SphereShape_Create_2(float radius, PhysicsMaterial material);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L44">Jolt/Physics/Collision/Shape/SphereShape.h:44</see>
/// <br/>
/// <c>float GetRadius() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Radius of the sphere
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "SphereShape_GetRadius")]
public static partial float SphereShape_GetRadius(SphereShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L54">Jolt/Physics/Collision/Shape/SphereShape.h:54</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetInnerRadius
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "SphereShape_GetInnerRadius")]
public static partial float SphereShape_GetInnerRadius(SphereShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L60">Jolt/Physics/Collision/Shape/SphereShape.h:60</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 = "SphereShape_GetSurfaceNormal")]
public static partial float3 SphereShape_GetSurfaceNormal(SphereShape self, uint subShapeID, float3 localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L69">Jolt/Physics/Collision/Shape/SphereShape.h:69</see>
/// <br/>
/// <c>virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &amp;inSurface, float &amp;outTotalVolume, float &amp;outSubmergedVolume, Vec3 &amp;outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubmergedVolume
/// </para>
/// </remarks>
[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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L73">Jolt/Physics/Collision/Shape/SphereShape.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 = "SphereShape_Draw")]
public static partial void SphereShape_Draw(SphereShape 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/SphereShape.h#L84">Jolt/Physics/Collision/Shape/SphereShape.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 = "SphereShape_CollideSoftBodyVertices")]
public static partial void SphereShape_CollideSoftBodyVertices(SphereShape 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/SphereShape.h#L87">Jolt/Physics/Collision/Shape/SphereShape.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 = "SphereShape_GetTrianglesStart")]
public static partial void SphereShape_GetTrianglesStart(SphereShape 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/SphereShape.h#L93">Jolt/Physics/Collision/Shape/SphereShape.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 = "SphereShape_SaveBinaryState")]
public static partial void SphereShape_SaveBinaryState(SphereShape self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L99">Jolt/Physics/Collision/Shape/SphereShape.h:99</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetVolume
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "SphereShape_GetVolume")]
public static partial float SphereShape_GetVolume(SphereShape self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L102">Jolt/Physics/Collision/Shape/SphereShape.h:102</see>
/// <br/>
/// <c>virtual bool IsValidScale(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::IsValidScale
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "SphereShape_IsValidScale")]
public static partial Brutal.Bool8 SphereShape_IsValidScale(SphereShape self, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L105">Jolt/Physics/Collision/Shape/SphereShape.h:105</see>
/// <br/>
/// <c>virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::MakeScaleValid
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "SphereShape_MakeScaleValid")]
public static partial float3 SphereShape_MakeScaleValid(SphereShape self, float3 scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SphereShape.h#L108">Jolt/Physics/Collision/Shape/SphereShape.h:108</see>
/// <br/>
/// <c>static void sRegister()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register shape functions with the registry
/// </para>
/// </remarks>
[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);
}
}
}