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
215
Brutal.Jolt/Generated/Classes/CharacterSettings.gen.cs
Normal file
215
Brutal.Jolt/Generated/Classes/CharacterSettings.gen.cs
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
// <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>
|
||||
/// Contains the configuration of a character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L16">Jolt/Physics/Character/Character.h:16</see>
|
||||
/// <br/>
|
||||
/// <c>class CharacterSettings : public CharacterBaseSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct CharacterSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L22">Jolt/Physics/Character/Character.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>CharacterSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static CharacterSettings Create() => Jolt.PInvoke.CharacterSettings_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Layer that this character will be added to
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L27">Jolt/Physics/Character/Character.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>ObjectLayer mLayer = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public ushort GetLayer() => Jolt.PInvoke.CharacterSettings_GetLayer(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Layer that this character will be added to
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L27">Jolt/Physics/Character/Character.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>ObjectLayer mLayer = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetLayer(ushort value) => Jolt.PInvoke.CharacterSettings_SetLayer(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Mass of the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L30">Jolt/Physics/Character/Character.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mMass = 80.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetMass() => Jolt.PInvoke.CharacterSettings_GetMass(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Mass of the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L30">Jolt/Physics/Character/Character.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>float mMass = 80.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetMass(float value) => Jolt.PInvoke.CharacterSettings_SetMass(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Friction for the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L33">Jolt/Physics/Character/Character.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>float mFriction = 0.2f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetFriction() => Jolt.PInvoke.CharacterSettings_GetFriction(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Friction for the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L33">Jolt/Physics/Character/Character.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>float mFriction = 0.2f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetFriction(float value) => Jolt.PInvoke.CharacterSettings_SetFriction(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Value to multiply gravity with for this character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L36">Jolt/Physics/Character/Character.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mGravityFactor = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetGravityFactor() => Jolt.PInvoke.CharacterSettings_GetGravityFactor(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Value to multiply gravity with for this character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L36">Jolt/Physics/Character/Character.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mGravityFactor = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetGravityFactor(float value) => Jolt.PInvoke.CharacterSettings_SetGravityFactor(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Allowed degrees of freedom for this character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L39">Jolt/Physics/Character/Character.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>EAllowedDOFs mAllowedDOFs = EAllowedDOFs::TranslationX | EAllowedDOFs::TranslationY | EAllowedDOFs::TranslationZ</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public AllowedDOFs GetAllowedDOFs() => Jolt.PInvoke.CharacterSettings_GetAllowedDOFs(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Allowed degrees of freedom for this character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/Character.h#L39">Jolt/Physics/Character/Character.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>EAllowedDOFs mAllowedDOFs = EAllowedDOFs::TranslationX | EAllowedDOFs::TranslationY | EAllowedDOFs::TranslationZ</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetAllowedDOFs(AllowedDOFs value) => Jolt.PInvoke.CharacterSettings_SetAllowedDOFs(this, value);
|
||||
|
||||
public void AddRef() => ((CharacterBaseSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((CharacterBaseSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((CharacterBaseSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator CharacterBaseSettings(CharacterSettings value) =>
|
||||
Unsafe.BitCast<CharacterSettings, CharacterBaseSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.GetUp()"/>
|
||||
public float3 GetUp() => ((CharacterBaseSettings)this).GetUp();
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.SetUp(float3)"/>
|
||||
public void SetUp(float3 value) => ((CharacterBaseSettings)this).SetUp(value);
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.GetSupportingVolume()"/>
|
||||
public Plane GetSupportingVolume() => ((CharacterBaseSettings)this).GetSupportingVolume();
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.SetSupportingVolume(Plane)"/>
|
||||
public void SetSupportingVolume(Plane value) => ((CharacterBaseSettings)this).SetSupportingVolume(value);
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.GetMaxSlopeAngle()"/>
|
||||
public float GetMaxSlopeAngle() => ((CharacterBaseSettings)this).GetMaxSlopeAngle();
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.SetMaxSlopeAngle(float)"/>
|
||||
public void SetMaxSlopeAngle(float value) => ((CharacterBaseSettings)this).SetMaxSlopeAngle(value);
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.GetEnhancedInternalEdgeRemoval()"/>
|
||||
public bool GetEnhancedInternalEdgeRemoval() => ((CharacterBaseSettings)this).GetEnhancedInternalEdgeRemoval();
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.SetEnhancedInternalEdgeRemoval(bool)"/>
|
||||
public void SetEnhancedInternalEdgeRemoval(bool value) =>
|
||||
((CharacterBaseSettings)this).SetEnhancedInternalEdgeRemoval(value);
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.GetShape()"/>
|
||||
public Shape GetShape() => ((CharacterBaseSettings)this).GetShape();
|
||||
|
||||
/// <inheritdoc cref="CharacterBaseSettings.SetShape(Shape)"/>
|
||||
public void SetShape(Shape value) => ((CharacterBaseSettings)this).SetShape(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue