//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// Class that constructs a ScaledShape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ScaledShape.h:16
///
/// class ScaledShapeSettings final : public DecoratedShapeSettings
///
///
[InteropHandle]
public readonly partial struct ScaledShapeSettings : IDisposable
{
///
///
/// Default constructor for deserialization
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ScaledShape.h:22
///
/// ScaledShapeSettings() = default
///
///
public static ScaledShapeSettings Create() => Jolt.PInvoke.ScaledShapeSettings_Create();
///
///
/// Constructor that decorates another shape with a scale
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ScaledShape.h:25
///
/// ScaledShapeSettings(const ShapeSettings *inShape, Vec3Arg inScale)
///
///
public static ScaledShapeSettings Create(ShapeSettings shape, float3 scale) =>
Jolt.PInvoke.ScaledShapeSettings_Create_2(shape, scale);
///
///
/// Variant that uses a concrete shape, which means this object cannot be serialized.
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ScaledShape.h:28
///
/// ScaledShapeSettings(const Shape *inShape, Vec3Arg inScale)
///
///
public static ScaledShapeSettings Create(Shape shape, float3 scale) =>
Jolt.PInvoke.ScaledShapeSettings_Create_3(shape, scale);
///
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
///
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
///
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ScaledShape.h:33
///
/// Vec3 mScale = Vec3(1, 1, 1)
///
///
public float3 GetScale() => Jolt.PInvoke.ScaledShapeSettings_GetScale(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/ScaledShape.h:33
///
/// Vec3 mScale = Vec3(1, 1, 1)
///
///
public void SetScale(float3 value) => Jolt.PInvoke.ScaledShapeSettings_SetScale(this, value);
public void AddRef() => ((ShapeSettings)this).AddRef();
public void Release() => ((ShapeSettings)this).Release();
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
public static implicit operator DecoratedShapeSettings(ScaledShapeSettings value) =>
Unsafe.BitCast(value);
public static implicit operator ShapeSettings(ScaledShapeSettings value) =>
Unsafe.BitCast(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
///
public ShapeSettings GetInnerShape() => ((DecoratedShapeSettings)this).GetInnerShape();
///
public void SetInnerShape(ShapeSettings value) => ((DecoratedShapeSettings)this).SetInnerShape(value);
///
public Shape GetInnerShapePtr() => ((DecoratedShapeSettings)this).GetInnerShapePtr();
///
public void SetInnerShapePtr(Shape value) => ((DecoratedShapeSettings)this).SetInnerShapePtr(value);
///
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
///
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
///
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
}
}