//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:34
///
/// class EmptyShape final : public Shape
///
///
///
///
/// An empty shape that has no volume and collides with nothing.
///
/// Possible use cases:
/// - As a placeholder for a shape that will be created later. E.g. if you first need to create a body and only then know what shape it will have.
/// - If you need a kinematic body to attach a constraint to, but you don't want the body to collide with anything.
///
/// Note that, if possible, you should also put your body in an ObjectLayer that doesn't collide with anything.
/// This ensures that collisions will be filtered out at broad phase level instead of at narrow phase level, this is more efficient.
///
///
[InteropHandle]
public readonly partial struct EmptyShape : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:38
///
/// EmptyShape()
///
///
///
///
/// Constructor
///
///
public static EmptyShape Create() => Jolt.PInvoke.EmptyShape_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:39
///
/// explicit EmptyShape(Vec3Arg inCenterOfMass)
///
///
public static EmptyShape Create(float3 centerOfMass) => Jolt.PInvoke.EmptyShape_Create_2(centerOfMass);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:43
///
/// Vec3 GetCenterOfMass() const override
///
///
///
///
/// See: Shape
///
///
public float3 GetCenterOfMass() => Jolt.PInvoke.EmptyShape_GetCenterOfMass(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:45
///
/// uint GetSubShapeIDBitsRecursive() const override
///
///
public uint GetSubShapeIDBitsRecursive() => Jolt.PInvoke.EmptyShape_GetSubShapeIDBitsRecursive(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:46
///
/// float GetInnerRadius() const override
///
///
public float GetInnerRadius() => Jolt.PInvoke.EmptyShape_GetInnerRadius(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:48
///
/// const PhysicsMaterial * GetMaterial(const SubShapeID &inSubShapeID) const override
///
///
public PhysicsMaterial GetMaterial(uint subShapeID) => Jolt.PInvoke.EmptyShape_GetMaterial(this, subShapeID);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:49
///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override
///
///
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.EmptyShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:50
///
/// virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy
///
///
public void GetSubmergedVolume(float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset) => Jolt.PInvoke.EmptyShape_GetSubmergedVolume(this, centerOfMassTransform, scale, surface, out totalVolume, out submergedVolume, out centerOfBuoyancy, baseOffset);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:56
///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override
///
///
public void Draw(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool useMaterialColors, bool drawWireframe) => Jolt.PInvoke.EmptyShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, drawWireframe);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:61
///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override
///
///
public void CollideSoftBodyVertices(float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex) => Jolt.PInvoke.EmptyShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:62
///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override
///
///
public void GetTrianglesStart(ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale) => Jolt.PInvoke.EmptyShape_GetTrianglesStart(this, ref context, box, positionCOM, rotation, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:65
///
/// float GetVolume() const override
///
///
public float GetVolume() => Jolt.PInvoke.EmptyShape_GetVolume(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:66
///
/// bool IsValidScale(Vec3Arg inScale) const override
///
///
public bool IsValidScale(float3 scale) => Jolt.PInvoke.EmptyShape_IsValidScale(this, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/EmptyShape.h:69
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
public static void sRegister() => Jolt.PInvoke.EmptyShape_sRegister();
public void AddRef() => Jolt.PInvoke.EmptyShape_AddRef(this);
public void Release() => Jolt.PInvoke.EmptyShape_Release(this);
public uint GetRefCount() => Jolt.PInvoke.EmptyShape_GetRefCount(this);
public static implicit operator Shape(EmptyShape value) => Jolt.PInvoke.EmptyShape_AsShape(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}