//
// 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/TaperedCylinderShape.h:34
///
/// class TaperedCylinderShape final : public ConvexShape
///
///
///
///
/// A cylinder with different top and bottom radii
///
///
[InteropHandle]
public readonly partial struct TaperedCylinderShape : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:40
///
/// TaperedCylinderShape()
///
///
///
///
/// Constructor
///
///
public static TaperedCylinderShape Create() => Jolt.PInvoke.TaperedCylinderShape_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:44
///
/// inline float GetTopRadius() const
///
///
///
///
/// Get top radius of the tapered cylinder
///
///
public float GetTopRadius() => Jolt.PInvoke.TaperedCylinderShape_GetTopRadius(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:47
///
/// inline float GetBottomRadius() const
///
///
///
///
/// Get bottom radius of the tapered cylinder
///
///
public float GetBottomRadius() => Jolt.PInvoke.TaperedCylinderShape_GetBottomRadius(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:50
///
/// inline float GetConvexRadius() const
///
///
///
///
/// Get convex radius of the tapered cylinder
///
///
public float GetConvexRadius() => Jolt.PInvoke.TaperedCylinderShape_GetConvexRadius(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:53
///
/// inline float GetHalfHeight() const
///
///
///
///
/// Get half height of the tapered cylinder
///
///
public float GetHalfHeight() => Jolt.PInvoke.TaperedCylinderShape_GetHalfHeight(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:56
///
/// virtual Vec3 GetCenterOfMass() const override
///
///
///
///
/// See Shape::GetCenterOfMass
///
///
public float3 GetCenterOfMass() => Jolt.PInvoke.TaperedCylinderShape_GetCenterOfMass(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:62
///
/// virtual float GetInnerRadius() const override
///
///
///
///
/// See Shape::GetInnerRadius
///
///
public float GetInnerRadius() => Jolt.PInvoke.TaperedCylinderShape_GetInnerRadius(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:68
///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override
///
///
///
///
/// See Shape::GetSurfaceNormal
///
///
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.TaperedCylinderShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:80
///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override
///
///
///
///
/// See: Shape::CollideSoftBodyVertices
///
///
public void CollideSoftBodyVertices(float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex) => Jolt.PInvoke.TaperedCylinderShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:83
///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::GetTrianglesStart
///
///
public void GetTrianglesStart(ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale) => Jolt.PInvoke.TaperedCylinderShape_GetTrianglesStart(this, ref context, box, positionCOM, rotation, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:90
///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override
///
///
///
///
/// See Shape::Draw
///
///
public void Draw(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool useMaterialColors, bool drawWireframe) => Jolt.PInvoke.TaperedCylinderShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, drawWireframe);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:94
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See Shape
///
///
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.TaperedCylinderShape_SaveBinaryState(this, stream);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:100
///
/// virtual float GetVolume() const override
///
///
///
///
/// See Shape::GetVolume
///
///
public float GetVolume() => Jolt.PInvoke.TaperedCylinderShape_GetVolume(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:103
///
/// virtual bool IsValidScale(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::IsValidScale
///
///
public bool IsValidScale(float3 scale) => Jolt.PInvoke.TaperedCylinderShape_IsValidScale(this, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:106
///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::MakeScaleValid
///
///
public float3 MakeScaleValid(float3 scale) => Jolt.PInvoke.TaperedCylinderShape_MakeScaleValid(this, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/TaperedCylinderShape.h:109
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
public static void sRegister() => Jolt.PInvoke.TaperedCylinderShape_sRegister();
public void AddRef() => Jolt.PInvoke.TaperedCylinderShape_AddRef(this);
public void Release() => Jolt.PInvoke.TaperedCylinderShape_Release(this);
public uint GetRefCount() => Jolt.PInvoke.TaperedCylinderShape_GetRefCount(this);
public static implicit operator ConvexShape(TaperedCylinderShape value) => Jolt.PInvoke.TaperedCylinderShape_AsConvexShape(value);
public static implicit operator Shape(TaperedCylinderShape value) => Jolt.PInvoke.TaperedCylinderShape_AsShape(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}