mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
141 lines
6.4 KiB
C#
141 lines
6.4 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/ScaledShape.h#L16">Jolt/Physics/Collision/Shape/ScaledShape.h:16</see>
|
|
/// <br/>
|
|
/// <c>class ScaledShapeSettings final : public DecoratedShapeSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Class that constructs a ScaledShape
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct ScaledShapeSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L22">Jolt/Physics/Collision/Shape/ScaledShape.h:22</see>
|
|
/// <br/>
|
|
/// <c>ScaledShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Default constructor for deserialization
|
|
/// </para>
|
|
/// </remarks>
|
|
public static ScaledShapeSettings Create() => Jolt.PInvoke.ScaledShapeSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L25">Jolt/Physics/Collision/Shape/ScaledShape.h:25</see>
|
|
/// <br/>
|
|
/// <c>ScaledShapeSettings(const ShapeSettings *inShape, Vec3Arg inScale)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor that decorates another shape with a scale
|
|
/// </para>
|
|
/// </remarks>
|
|
public static ScaledShapeSettings Create(ShapeSettings shape, float3 scale) => Jolt.PInvoke.ScaledShapeSettings_Create_2(shape, scale);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L28">Jolt/Physics/Collision/Shape/ScaledShape.h:28</see>
|
|
/// <br/>
|
|
/// <c>ScaledShapeSettings(const Shape *inShape, Vec3Arg inScale)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Variant that uses a concrete shape, which means this object cannot be serialized.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static ScaledShapeSettings Create(Shape shape, float3 scale) => Jolt.PInvoke.ScaledShapeSettings_Create_3(shape, scale);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L18">Jolt/Physics/Collision/Shape/ScaledShape.h:18</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.ScaledShapeSettings_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L18">Jolt/Physics/Collision/Shape/ScaledShape.h:18</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.ScaledShapeSettings_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L31">Jolt/Physics/Collision/Shape/ScaledShape.h:31</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.ScaledShapeSettings_CreateShape(this);
|
|
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
|
|
return _handle;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L33">Jolt/Physics/Collision/Shape/ScaledShape.h:33</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mScale = Vec3(1, 1, 1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetScale() => Jolt.PInvoke.ScaledShapeSettings_GetScale(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/ScaledShape.h#L33">Jolt/Physics/Collision/Shape/ScaledShape.h:33</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mScale = Vec3(1, 1, 1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetScale(float3 value) => Jolt.PInvoke.ScaledShapeSettings_SetScale(this, value);
|
|
public void AddRef() => Jolt.PInvoke.ScaledShapeSettings_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.ScaledShapeSettings_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.ScaledShapeSettings_GetRefCount(this);
|
|
public static implicit operator DecoratedShapeSettings(ScaledShapeSettings value) => Jolt.PInvoke.ScaledShapeSettings_AsDecoratedShapeSettings(value);
|
|
public static implicit operator ShapeSettings(ScaledShapeSettings value) => Jolt.PInvoke.ScaledShapeSettings_AsShapeSettings(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|