// // 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/TaperedCapsuleShape.h:41 ///
/// class TaperedCapsuleShape final : public ConvexShape ///
///
/// /// /// A capsule with different top and bottom radii /// /// [InteropHandle] public readonly partial struct TaperedCapsuleShape : IDisposable { /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:47 ///
/// TaperedCapsuleShape() ///
///
/// /// /// Constructor /// /// public static TaperedCapsuleShape Create() => Jolt.PInvoke.TaperedCapsuleShape_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:51 ///
/// inline float GetTopRadius() const ///
///
/// /// /// Get top radius of the tapered capsule /// /// public float GetTopRadius() => Jolt.PInvoke.TaperedCapsuleShape_GetTopRadius(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:54 ///
/// inline float GetBottomRadius() const ///
///
/// /// /// Get bottom radius of the tapered capsule /// /// public float GetBottomRadius() => Jolt.PInvoke.TaperedCapsuleShape_GetBottomRadius(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:57 ///
/// inline float GetHalfHeight() const ///
///
/// /// /// Get half height between the top and bottom sphere center /// /// public float GetHalfHeight() => Jolt.PInvoke.TaperedCapsuleShape_GetHalfHeight(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:60 ///
/// virtual Vec3 GetCenterOfMass() const override ///
///
/// /// /// See Shape::GetCenterOfMass /// /// public float3 GetCenterOfMass() => Jolt.PInvoke.TaperedCapsuleShape_GetCenterOfMass(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:70 ///
/// virtual float GetInnerRadius() const override ///
///
/// /// /// See Shape::GetInnerRadius /// /// public float GetInnerRadius() => Jolt.PInvoke.TaperedCapsuleShape_GetInnerRadius(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:76 ///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override ///
///
/// /// /// See Shape::GetSurfaceNormal /// /// public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.TaperedCapsuleShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:85 ///
/// 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.TaperedCapsuleShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:89 ///
/// 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.TaperedCapsuleShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, drawWireframe); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:93 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See Shape /// /// public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.TaperedCapsuleShape_SaveBinaryState(this, stream); /// /// /// Volume is approximate! /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:99 ///
/// virtual float GetVolume() const override ///
///
/// /// /// See Shape::GetVolume /// /// public float GetVolume() => Jolt.PInvoke.TaperedCapsuleShape_GetVolume(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:102 ///
/// virtual bool IsValidScale(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::IsValidScale /// /// public bool IsValidScale(float3 scale) => Jolt.PInvoke.TaperedCapsuleShape_IsValidScale(this, scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:105 ///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::MakeScaleValid /// /// public float3 MakeScaleValid(float3 scale) => Jolt.PInvoke.TaperedCapsuleShape_MakeScaleValid(this, scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:108 ///
/// static void sRegister() ///
///
/// /// /// Register shape functions with the registry /// /// public static void sRegister() => Jolt.PInvoke.TaperedCapsuleShape_sRegister(); public void AddRef() => Jolt.PInvoke.TaperedCapsuleShape_AddRef(this); public void Release() => Jolt.PInvoke.TaperedCapsuleShape_Release(this); public uint GetRefCount() => Jolt.PInvoke.TaperedCapsuleShape_GetRefCount(this); public static implicit operator ConvexShape(TaperedCapsuleShape value) => Jolt.PInvoke.TaperedCapsuleShape_AsConvexShape(value); public static implicit operator Shape(TaperedCapsuleShape value) => Jolt.PInvoke.TaperedCapsuleShape_AsShape(value); public void Dispose() { if (IsNull()) return; Release(); } } }