mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
189 lines
8 KiB
C#
189 lines
8 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/Character/Character.h#L16">Jolt/Physics/Character/Character.h:16</see>
|
|
/// <br/>
|
|
/// <c>class CharacterSettings : public CharacterBaseSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Contains the configuration of a character
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct CharacterSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L22">Jolt/Physics/Character/Character.h:22</see>
|
|
/// <br/>
|
|
/// <c>CharacterSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
public static CharacterSettings Create() => Jolt.PInvoke.CharacterSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L27">Jolt/Physics/Character/Character.h:27</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Layer that this character will be added to
|
|
/// </para>
|
|
/// </remarks>
|
|
public ushort GetLayer() => Jolt.PInvoke.CharacterSettings_GetLayer(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L27">Jolt/Physics/Character/Character.h:27</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Layer that this character will be added to
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetLayer(ushort value) => Jolt.PInvoke.CharacterSettings_SetLayer(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L30">Jolt/Physics/Character/Character.h:30</see>
|
|
/// <br/>
|
|
/// <c>float mMass = 80.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Mass of the character
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetMass() => Jolt.PInvoke.CharacterSettings_GetMass(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L30">Jolt/Physics/Character/Character.h:30</see>
|
|
/// <br/>
|
|
/// <c>float mMass = 80.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Mass of the character
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetMass(float value) => Jolt.PInvoke.CharacterSettings_SetMass(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L33">Jolt/Physics/Character/Character.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mFriction = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Friction for the character
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetFriction() => Jolt.PInvoke.CharacterSettings_GetFriction(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L33">Jolt/Physics/Character/Character.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mFriction = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Friction for the character
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetFriction(float value) => Jolt.PInvoke.CharacterSettings_SetFriction(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L36">Jolt/Physics/Character/Character.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mGravityFactor = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Value to multiply gravity with for this character
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetGravityFactor() => Jolt.PInvoke.CharacterSettings_GetGravityFactor(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L36">Jolt/Physics/Character/Character.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mGravityFactor = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Value to multiply gravity with for this character
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetGravityFactor(float value) => Jolt.PInvoke.CharacterSettings_SetGravityFactor(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Allowed degrees of freedom for this character
|
|
/// </para>
|
|
/// </remarks>
|
|
public EAllowedDOFs GetAllowedDOFs() => Jolt.PInvoke.CharacterSettings_GetAllowedDOFs(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Allowed degrees of freedom for this character
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetAllowedDOFs(EAllowedDOFs value) => Jolt.PInvoke.CharacterSettings_SetAllowedDOFs(this, value);
|
|
public void AddRef() => Jolt.PInvoke.CharacterSettings_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.CharacterSettings_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.CharacterSettings_GetRefCount(this);
|
|
public static implicit operator CharacterBaseSettings(CharacterSettings value) => Jolt.PInvoke.CharacterSettings_AsCharacterBaseSettings(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|