brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/RotatedTranslatedShapeSettings.gen.cs
2026-10-15 14:12:02 +13:00

171 lines
8.3 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L15">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:15</see>
/// <br/>
/// <c>class RotatedTranslatedShapeSettings final : public DecoratedShapeSettings</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Class that constructs a RotatedTranslatedShape
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct RotatedTranslatedShapeSettings : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L21">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:21</see>
/// <br/>
/// <c>RotatedTranslatedShapeSettings() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static RotatedTranslatedShapeSettings Create() => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L24">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:24</see>
/// <br/>
/// <c>RotatedTranslatedShapeSettings(Vec3Arg inPosition, QuatArg inRotation, const ShapeSettings *inShape)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Construct with shape settings, can be serialized.
/// </para>
/// </remarks>
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, ShapeSettings shape) => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_2(position, rotation, shape);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L27">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:27</see>
/// <br/>
/// <c>RotatedTranslatedShapeSettings(Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Variant that uses a concrete shape, which means this object cannot be serialized.
/// </para>
/// </remarks>
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, Shape shape) => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_3(position, rotation, shape);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L17">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:17</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
public RTTI GetRTTI() => Jolt.PInvoke.RotatedTranslatedShapeSettings_GetRTTI(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L17">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:17</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.RotatedTranslatedShapeSettings_CastTo(this, rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L30">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:30</see>
/// <br/>
/// <c>virtual ShapeResult Create() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: ShapeSettings
/// </para>
/// <para>
/// Throws InvalidOperationException with Jolt's error message when the operation fails.
/// </para>
/// </remarks>
public Shape CreateShape()
{
var _handle = Jolt.PInvoke.RotatedTranslatedShapeSettings_CreateShape(this);
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
return _handle;
}
/// <summary>
/// <para>
/// Position of the sub shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L32">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:32</see>
/// <br/>
/// <c>Vec3 mPosition</c>
/// </para>
/// </summary>
public float3 GetPosition() => Jolt.PInvoke.RotatedTranslatedShapeSettings_GetPosition(this);
/// <summary>
/// <para>
/// Position of the sub shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L32">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:32</see>
/// <br/>
/// <c>Vec3 mPosition</c>
/// </para>
/// </summary>
public void SetPosition(float3 value) => Jolt.PInvoke.RotatedTranslatedShapeSettings_SetPosition(this, value);
/// <summary>
/// <para>
/// Rotation of the sub shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L33">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:33</see>
/// <br/>
/// <c>Quat mRotation</c>
/// </para>
/// </summary>
public floatQuat GetRotation() => Jolt.PInvoke.RotatedTranslatedShapeSettings_GetRotation(this);
/// <summary>
/// <para>
/// Rotation of the sub shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L33">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:33</see>
/// <br/>
/// <c>Quat mRotation</c>
/// </para>
/// </summary>
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();
}
}
}