mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
168 lines
7.6 KiB
C#
168 lines
7.6 KiB
C#
// <auto-generated/>
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Class that constructs a RotatedTranslatedShape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
|
[InteropHandle]
|
|
public readonly partial struct RotatedTranslatedShapeSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L21">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:21</see>
|
|
/// <br/>
|
|
/// <c>RotatedTranslatedShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static RotatedTranslatedShapeSettings Create() => Jolt.PInvoke.RotatedTranslatedShapeSettings_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Construct with shape settings, can be serialized.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
|
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, ShapeSettings shape) =>
|
|
Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_2(position, rotation, shape);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Variant that uses a concrete shape, which means this object cannot be serialized.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
|
public static RotatedTranslatedShapeSettings Create(float3 position, floatQuat rotation, Shape shape) =>
|
|
Jolt.PInvoke.RotatedTranslatedShapeSettings_Create_3(position, rotation, shape);
|
|
|
|
/// <inheritdoc cref="ShapeSettings.GetRTTI()"/>
|
|
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
|
|
|
|
/// <inheritdoc cref="ShapeSettings.CastTo(RTTI)"/>
|
|
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
|
|
|
|
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
|
|
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Position of the sub shape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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() => ((ShapeSettings)this).AddRef();
|
|
|
|
public void Release() => ((ShapeSettings)this).Release();
|
|
|
|
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
|
|
|
public static implicit operator DecoratedShapeSettings(RotatedTranslatedShapeSettings value) =>
|
|
Unsafe.BitCast<RotatedTranslatedShapeSettings, DecoratedShapeSettings>(value);
|
|
|
|
public static implicit operator ShapeSettings(RotatedTranslatedShapeSettings value) =>
|
|
Unsafe.BitCast<RotatedTranslatedShapeSettings, ShapeSettings>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
|
|
/// <inheritdoc cref="DecoratedShapeSettings.GetInnerShape()"/>
|
|
public ShapeSettings GetInnerShape() => ((DecoratedShapeSettings)this).GetInnerShape();
|
|
|
|
/// <inheritdoc cref="DecoratedShapeSettings.SetInnerShape(ShapeSettings)"/>
|
|
public void SetInnerShape(ShapeSettings value) => ((DecoratedShapeSettings)this).SetInnerShape(value);
|
|
|
|
/// <inheritdoc cref="DecoratedShapeSettings.GetInnerShapePtr()"/>
|
|
public Shape GetInnerShapePtr() => ((DecoratedShapeSettings)this).GetInnerShapePtr();
|
|
|
|
/// <inheritdoc cref="DecoratedShapeSettings.SetInnerShapePtr(Shape)"/>
|
|
public void SetInnerShapePtr(Shape value) => ((DecoratedShapeSettings)this).SetInnerShapePtr(value);
|
|
|
|
/// <inheritdoc cref="ShapeSettings.ClearCachedResult()"/>
|
|
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
|
|
|
|
/// <inheritdoc cref="ShapeSettings.GetUserData()"/>
|
|
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
|
|
|
|
/// <inheritdoc cref="ShapeSettings.SetUserData(ulong)"/>
|
|
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
|
|
}
|
|
}
|