// // 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/DecoratedShape.h:29 ///
/// class DecoratedShape : public Shape ///
///
/// /// /// Base class for shapes that decorate another shape with extra functionality (e.g. scale, translation etc.) /// /// [InteropHandle] public readonly partial struct DecoratedShape : IDisposable { /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:40 ///
/// const Shape * GetInnerShape() const ///
///
/// /// /// Access to the decorated inner shape /// /// public Shape GetInnerShape() => Jolt.PInvoke.DecoratedShape_GetInnerShape(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:43 ///
/// virtual bool MustBeStatic() const override ///
///
/// /// /// See Shape::MustBeStatic /// /// public bool MustBeStatic() => Jolt.PInvoke.DecoratedShape_MustBeStatic(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:46 ///
/// virtual Vec3 GetCenterOfMass() const override ///
///
/// /// /// See Shape::GetCenterOfMass /// /// public float3 GetCenterOfMass() => Jolt.PInvoke.DecoratedShape_GetCenterOfMass(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:49 ///
/// virtual uint GetSubShapeIDBitsRecursive() const override ///
///
/// /// /// See Shape::GetSubShapeIDBitsRecursive /// /// public uint GetSubShapeIDBitsRecursive() => Jolt.PInvoke.DecoratedShape_GetSubShapeIDBitsRecursive(this); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:52 ///
/// virtual const Shape * GetLeafShape(const SubShapeID &inSubShapeID, SubShapeID &outRemainder) const override ///
///
/// /// /// See Shape::GetLeafShape /// /// public Shape GetLeafShape(uint subShapeID, out uint remainder) => Jolt.PInvoke.DecoratedShape_GetLeafShape(this, subShapeID, out remainder); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:55 ///
/// virtual const PhysicsMaterial * GetMaterial(const SubShapeID &inSubShapeID) const override ///
///
/// /// /// See Shape::GetMaterial /// /// public PhysicsMaterial GetMaterial(uint subShapeID) => Jolt.PInvoke.DecoratedShape_GetMaterial(this, subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:61 ///
/// virtual uint64 GetSubShapeUserData(const SubShapeID &inSubShapeID) const override ///
///
/// /// /// See Shape::GetSubShapeUserData /// /// public ulong GetSubShapeUserData(uint subShapeID) => Jolt.PInvoke.DecoratedShape_GetSubShapeUserData(this, subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:71 ///
/// virtual bool IsValidScale(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::IsValidScale /// /// public bool IsValidScale(float3 scale) => Jolt.PInvoke.DecoratedShape_IsValidScale(this, scale); /// /// /// C++: /// Jolt/Physics/Collision/Shape/DecoratedShape.h:74 ///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override ///
///
/// /// /// See Shape::MakeScaleValid /// /// public float3 MakeScaleValid(float3 scale) => Jolt.PInvoke.DecoratedShape_MakeScaleValid(this, scale); public void AddRef() => Jolt.PInvoke.DecoratedShape_AddRef(this); public void Release() => Jolt.PInvoke.DecoratedShape_Release(this); public uint GetRefCount() => Jolt.PInvoke.DecoratedShape_GetRefCount(this); public static implicit operator Shape(DecoratedShape value) => Jolt.PInvoke.DecoratedShape_AsShape(value); public void Dispose() { if (IsNull()) return; Release(); } } }