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
124
Brutal.Jolt/Generated/Classes/ConvexShapeSettings.gen.cs
Normal file
124
Brutal.Jolt/Generated/Classes/ConvexShapeSettings.gen.cs
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
// <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 ConvexShape (abstract)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ConvexShape.h#L17">Jolt/Physics/Collision/Shape/ConvexShape.h:17</see>
|
||||
/// <br/>
|
||||
/// <c>class ConvexShapeSettings : public ShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct ConvexShapeSettings : IDisposable
|
||||
{
|
||||
/// <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);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set the density of the object in kg / m^3
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ConvexShape.h#L27">Jolt/Physics/Collision/Shape/ConvexShape.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>void SetDensity(float inDensity)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetDensity(float density) => Jolt.PInvoke.ConvexShapeSettings_SetDensity(this, density);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Material assigned to this shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ConvexShape.h#L30">Jolt/Physics/Collision/Shape/ConvexShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<PhysicsMaterial> mMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Properties
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// The returned handle carries its own reference; Dispose it once when you're done.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public PhysicsMaterial GetMaterial() => Jolt.PInvoke.ConvexShapeSettings_GetMaterial(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Material assigned to this shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ConvexShape.h#L30">Jolt/Physics/Collision/Shape/ConvexShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<PhysicsMaterial> mMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Properties
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetMaterial(PhysicsMaterial value) => Jolt.PInvoke.ConvexShapeSettings_SetMaterial(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Uniform density of the interior of the convex object (kg / m^3)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ConvexShape.h#L31">Jolt/Physics/Collision/Shape/ConvexShape.h:31</see>
|
||||
/// <br/>
|
||||
/// <c>float mDensity = 1000.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetDensity() => Jolt.PInvoke.ConvexShapeSettings_GetDensity(this);
|
||||
|
||||
public void AddRef() => ((ShapeSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((ShapeSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator ShapeSettings(ConvexShapeSettings value) =>
|
||||
Unsafe.BitCast<ConvexShapeSettings, ShapeSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
|
||||
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
|
||||
|
||||
/// <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