//
// 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 RotatedTranslatedShape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:15
///
/// class RotatedTranslatedShapeSettings final : public DecoratedShapeSettings
///
///
[InteropHandle]
public readonly partial struct RotatedTranslatedShapeSettings : IDisposable
{
///
///
/// Constructor
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:21
///
/// RotatedTranslatedShapeSettings() = default
///
///
public static RotatedTranslatedShapeSettings Create() => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create();
///
///
/// Construct with shape settings, can be serialized.
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:24
///
/// RotatedTranslatedShapeSettings(Vec3Arg inPosition, QuatArg inRotation, const ShapeSettings *inShape)
///
///
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, ShapeSettings shape) =>
Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_2(position, rotation, shape);
///
///
/// Variant that uses a concrete shape, which means this object cannot be serialized.
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:27
///
/// RotatedTranslatedShapeSettings(Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape)
///
///
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, Shape shape) =>
Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_3(position, rotation, shape);
///
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
///
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
///
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
///
///
/// 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() => ((ShapeSettings)this).AddRef();
public void Release() => ((ShapeSettings)this).Release();
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
public static implicit operator DecoratedShapeSettings(RotatedTranslatedShapeSettings value) =>
Unsafe.BitCast(value);
public static implicit operator ShapeSettings(RotatedTranslatedShapeSettings 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);
}
}