mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
106 lines
4.3 KiB
C#
106 lines
4.3 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 an EmptyShape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/EmptyShape.h#L13">Jolt/Physics/Collision/Shape/EmptyShape.h:13</see>
|
|
/// <br/>
|
|
/// <c>class EmptyShapeSettings final : public ShapeSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct EmptyShapeSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/EmptyShape.h#L18">Jolt/Physics/Collision/Shape/EmptyShape.h:18</see>
|
|
/// <br/>
|
|
/// <c>EmptyShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static EmptyShapeSettings Create() => Jolt.PInvoke.EmptyShapeSettings_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/EmptyShape.h#L19">Jolt/Physics/Collision/Shape/EmptyShape.h:19</see>
|
|
/// <br/>
|
|
/// <c>explicit EmptyShapeSettings(Vec3Arg inCenterOfMass)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static EmptyShapeSettings Create(float3 centerOfMass) =>
|
|
Jolt.PInvoke.EmptyShapeSettings_Create_2(centerOfMass);
|
|
|
|
/// <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>
|
|
/// Determines the center of mass for this shape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/EmptyShape.h#L23">Jolt/Physics/Collision/Shape/EmptyShape.h:23</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mCenterOfMass = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetCenterOfMass() => Jolt.PInvoke.EmptyShapeSettings_GetCenterOfMass(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Determines the center of mass for this shape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/EmptyShape.h#L23">Jolt/Physics/Collision/Shape/EmptyShape.h:23</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mCenterOfMass = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetCenterOfMass(float3 value) => Jolt.PInvoke.EmptyShapeSettings_SetCenterOfMass(this, value);
|
|
|
|
public void AddRef() => ((ShapeSettings)this).AddRef();
|
|
|
|
public void Release() => ((ShapeSettings)this).Release();
|
|
|
|
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
|
|
|
public static implicit operator ShapeSettings(EmptyShapeSettings value) =>
|
|
Unsafe.BitCast<EmptyShapeSettings, ShapeSettings>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
|
|
/// <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);
|
|
}
|
|
}
|