//
// 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
{
///
///
/// Contains the configuration of a character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:16
///
/// class CharacterSettings : public CharacterBaseSettings
///
///
[InteropHandle]
public readonly partial struct CharacterSettings : IDisposable
{
///
///
/// Constructor
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:22
///
/// CharacterSettings() = default
///
///
public static CharacterSettings Create() => Jolt.PInvoke.CharacterSettings_Create();
///
///
/// Layer that this character will be added to
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:27
///
/// ObjectLayer mLayer = 0
///
///
public ushort GetLayer() => Jolt.PInvoke.CharacterSettings_GetLayer(this);
///
///
/// Layer that this character will be added to
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:27
///
/// ObjectLayer mLayer = 0
///
///
public void SetLayer(ushort value) => Jolt.PInvoke.CharacterSettings_SetLayer(this, value);
///
///
/// Mass of the character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:30
///
/// float mMass = 80.0f
///
///
public float GetMass() => Jolt.PInvoke.CharacterSettings_GetMass(this);
///
///
/// Mass of the character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:30
///
/// float mMass = 80.0f
///
///
public void SetMass(float value) => Jolt.PInvoke.CharacterSettings_SetMass(this, value);
///
///
/// Friction for the character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:33
///
/// float mFriction = 0.2f
///
///
public float GetFriction() => Jolt.PInvoke.CharacterSettings_GetFriction(this);
///
///
/// Friction for the character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:33
///
/// float mFriction = 0.2f
///
///
public void SetFriction(float value) => Jolt.PInvoke.CharacterSettings_SetFriction(this, value);
///
///
/// Value to multiply gravity with for this character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:36
///
/// float mGravityFactor = 1.0f
///
///
public float GetGravityFactor() => Jolt.PInvoke.CharacterSettings_GetGravityFactor(this);
///
///
/// Value to multiply gravity with for this character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:36
///
/// float mGravityFactor = 1.0f
///
///
public void SetGravityFactor(float value) => Jolt.PInvoke.CharacterSettings_SetGravityFactor(this, value);
///
///
/// Allowed degrees of freedom for this character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:39
///
/// EAllowedDOFs mAllowedDOFs = EAllowedDOFs::TranslationX | EAllowedDOFs::TranslationY | EAllowedDOFs::TranslationZ
///
///
public AllowedDOFs GetAllowedDOFs() => Jolt.PInvoke.CharacterSettings_GetAllowedDOFs(this);
///
///
/// Allowed degrees of freedom for this character
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:39
///
/// EAllowedDOFs mAllowedDOFs = EAllowedDOFs::TranslationX | EAllowedDOFs::TranslationY | EAllowedDOFs::TranslationZ
///
///
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(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
///
public float3 GetUp() => ((CharacterBaseSettings)this).GetUp();
///
public void SetUp(float3 value) => ((CharacterBaseSettings)this).SetUp(value);
///
public Plane GetSupportingVolume() => ((CharacterBaseSettings)this).GetSupportingVolume();
///
public void SetSupportingVolume(Plane value) => ((CharacterBaseSettings)this).SetSupportingVolume(value);
///
public float GetMaxSlopeAngle() => ((CharacterBaseSettings)this).GetMaxSlopeAngle();
///
public void SetMaxSlopeAngle(float value) => ((CharacterBaseSettings)this).SetMaxSlopeAngle(value);
///
public bool GetEnhancedInternalEdgeRemoval() => ((CharacterBaseSettings)this).GetEnhancedInternalEdgeRemoval();
///
public void SetEnhancedInternalEdgeRemoval(bool value) =>
((CharacterBaseSettings)this).SetEnhancedInternalEdgeRemoval(value);
///
public Shape GetShape() => ((CharacterBaseSettings)this).GetShape();
///
public void SetShape(Shape value) => ((CharacterBaseSettings)this).SetShape(value);
}
}