// // 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:15 ///
/// class TaperedCapsuleShapeSettings final : public ConvexShapeSettings ///
///
/// /// /// Class that constructs a TaperedCapsuleShape /// /// [InteropHandle] public readonly partial struct TaperedCapsuleShapeSettings : IDisposable { /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:21 ///
/// TaperedCapsuleShapeSettings() = default ///
///
/// /// /// Default constructor for deserialization /// /// public static TaperedCapsuleShapeSettings Create() => Jolt.PInvoke.TaperedCapsuleShapeSettings_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:24 ///
/// TaperedCapsuleShapeSettings(float inHalfHeightOfTaperedCylinder, float inTopRadius, float inBottomRadius, const PhysicsMaterial *inMaterial = nullptr) ///
///
/// /// /// Create a tapered capsule centered around the origin with one sphere cap at (0, /// -inHalfHeightOfTaperedCylinder, 0) with radius inBottomRadius and the other at (0, /// inHalfHeightOfTaperedCylinder, 0) with radius inTopRadius /// /// public static TaperedCapsuleShapeSettings Create(float halfHeightOfTaperedCylinder, float topRadius, float bottomRadius, PhysicsMaterial material) => Jolt.PInvoke.TaperedCapsuleShapeSettings_Create_2(halfHeightOfTaperedCylinder, topRadius, bottomRadius, material); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:17 ///
/// ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// public RTTI GetRTTI() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetRTTI(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:17 ///
/// ///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.TaperedCapsuleShapeSettings_CastTo(this, rTTI); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:27 ///
/// bool IsValid() const ///
///
/// /// /// Check if the settings are valid /// /// public bool IsValid() => Jolt.PInvoke.TaperedCapsuleShapeSettings_IsValid(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:30 ///
/// bool IsSphere() const ///
///
/// /// /// Checks if the settings of this tapered capsule make this shape a sphere /// /// public bool IsSphere() => Jolt.PInvoke.TaperedCapsuleShapeSettings_IsSphere(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:33 ///
/// virtual ShapeResult Create() const override ///
///
/// /// /// See: ShapeSettings /// /// /// Throws InvalidOperationException with Jolt's error message when the operation fails. /// /// public Shape CreateShape() { var _handle = Jolt.PInvoke.TaperedCapsuleShapeSettings_CreateShape(this); if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError()); return _handle; } /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:35 ///
/// float mHalfHeightOfTaperedCylinder = 0.0f ///
///
public float GetHalfHeightOfTaperedCylinder() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetHalfHeightOfTaperedCylinder(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:35 ///
/// float mHalfHeightOfTaperedCylinder = 0.0f ///
///
public void SetHalfHeightOfTaperedCylinder(float value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_SetHalfHeightOfTaperedCylinder(this, value); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:36 ///
/// float mTopRadius = 0.0f ///
///
public float GetTopRadius() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetTopRadius(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:36 ///
/// float mTopRadius = 0.0f ///
///
public void SetTopRadius(float value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_SetTopRadius(this, value); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:37 ///
/// float mBottomRadius = 0.0f ///
///
public float GetBottomRadius() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetBottomRadius(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h:37 ///
/// float mBottomRadius = 0.0f ///
///
public void SetBottomRadius(float value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_SetBottomRadius(this, value); public void AddRef() => Jolt.PInvoke.TaperedCapsuleShapeSettings_AddRef(this); public void Release() => Jolt.PInvoke.TaperedCapsuleShapeSettings_Release(this); public uint GetRefCount() => Jolt.PInvoke.TaperedCapsuleShapeSettings_GetRefCount(this); public static implicit operator ConvexShapeSettings(TaperedCapsuleShapeSettings value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_AsConvexShapeSettings(value); public static implicit operator ShapeSettings(TaperedCapsuleShapeSettings value) => Jolt.PInvoke.TaperedCapsuleShapeSettings_AsShapeSettings(value); public void Dispose() { if (IsNull()) return; Release(); } } }