//
// 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/RotatedTranslatedShape.h:15
///
/// class RotatedTranslatedShapeSettings final : public DecoratedShapeSettings
///
///
///
///
/// Class that constructs a RotatedTranslatedShape
///
///
[InteropHandle]
public readonly partial struct RotatedTranslatedShapeSettings : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:21
///
/// RotatedTranslatedShapeSettings() = default
///
///
///
///
/// Constructor
///
///
public static RotatedTranslatedShapeSettings Create() => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:24
///
/// RotatedTranslatedShapeSettings(Vec3Arg inPosition, QuatArg inRotation, const ShapeSettings *inShape)
///
///
///
///
/// Construct with shape settings, can be serialized.
///
///
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, ShapeSettings shape) => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_2(position, rotation, shape);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:27
///
/// RotatedTranslatedShapeSettings(Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape)
///
///
///
///
/// Variant that uses a concrete shape, which means this object cannot be serialized.
///
///
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, Shape shape) => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_3(position, rotation, shape);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:17
///
///
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
public RTTI GetRTTI() => Jolt.PInvoke.RotatedTranslatedShapeSettings_GetRTTI(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:17
///
///
///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.RotatedTranslatedShapeSettings_CastTo(this, rTTI);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:30
///
/// 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.RotatedTranslatedShapeSettings_CreateShape(this);
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
return _handle;
}
///
///
/// Position of the sub shape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:32
///
/// Vec3 mPosition
///
///
public float3 GetPosition() => Jolt.PInvoke.RotatedTranslatedShapeSettings_GetPosition(this);
///
///
/// Position of the sub shape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:32
///
/// Vec3 mPosition
///
///
public void SetPosition(float3 value) => Jolt.PInvoke.RotatedTranslatedShapeSettings_SetPosition(this, value);
///
///
/// Rotation of the sub shape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:33
///
/// Quat mRotation
///
///
public floatQuat GetRotation() => Jolt.PInvoke.RotatedTranslatedShapeSettings_GetRotation(this);
///
///
/// Rotation of the sub shape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:33
///
/// Quat mRotation
///
///
public void SetRotation(floatQuat value) => Jolt.PInvoke.RotatedTranslatedShapeSettings_SetRotation(this, value);
public void AddRef() => Jolt.PInvoke.RotatedTranslatedShapeSettings_AddRef(this);
public void Release() => Jolt.PInvoke.RotatedTranslatedShapeSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.RotatedTranslatedShapeSettings_GetRefCount(this);
public static implicit operator DecoratedShapeSettings(RotatedTranslatedShapeSettings value) => Jolt.PInvoke.RotatedTranslatedShapeSettings_AsDecoratedShapeSettings(value);
public static implicit operator ShapeSettings(RotatedTranslatedShapeSettings value) => Jolt.PInvoke.RotatedTranslatedShapeSettings_AsShapeSettings(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}