mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,141 @@
|
|||
// <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 an OffsetCenterOfMassShape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h#L14">Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h:14</see>
|
||||
/// <br/>
|
||||
/// <c>class OffsetCenterOfMassShapeSettings final : public DecoratedShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct OffsetCenterOfMassShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h#L20">Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h:20</see>
|
||||
/// <br/>
|
||||
/// <c>OffsetCenterOfMassShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static OffsetCenterOfMassShapeSettings Create() => Jolt.PInvoke.OffsetCenterOfMassShapeSettings_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/OffsetCenterOfMassShape.h#L23">Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h:23</see>
|
||||
/// <br/>
|
||||
/// <c>OffsetCenterOfMassShapeSettings(Vec3Arg inOffset, const ShapeSettings *inShape)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static OffsetCenterOfMassShapeSettings Create(float3 offset, ShapeSettings shape) =>
|
||||
Jolt.PInvoke.OffsetCenterOfMassShapeSettings_Create_2(offset, 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/OffsetCenterOfMassShape.h#L26">Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h:26</see>
|
||||
/// <br/>
|
||||
/// <c>OffsetCenterOfMassShapeSettings(Vec3Arg inOffset, const Shape *inShape)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static OffsetCenterOfMassShapeSettings Create(float3 offset, Shape shape) =>
|
||||
Jolt.PInvoke.OffsetCenterOfMassShapeSettings_Create_3(offset, 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>
|
||||
/// Offset to be applied to the center of mass of the child shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h#L31">Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h:31</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetOffset() => Jolt.PInvoke.OffsetCenterOfMassShapeSettings_GetOffset(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Offset to be applied to the center of mass of the child shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h#L31">Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h:31</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetOffset(float3 value) => Jolt.PInvoke.OffsetCenterOfMassShapeSettings_SetOffset(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(OffsetCenterOfMassShapeSettings value) =>
|
||||
Unsafe.BitCast<OffsetCenterOfMassShapeSettings, DecoratedShapeSettings>(value);
|
||||
|
||||
public static implicit operator ShapeSettings(OffsetCenterOfMassShapeSettings value) =>
|
||||
Unsafe.BitCast<OffsetCenterOfMassShapeSettings, 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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue