//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:20
///
/// class CharacterBaseSettings : public RefTarget<CharacterBaseSettings>
///
///
///
///
/// Base class for configuration of a character
///
///
[InteropHandle]
public readonly partial struct CharacterBaseSettings : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:26
///
/// CharacterBaseSettings() = default
///
///
///
///
/// Constructor
///
///
public static CharacterBaseSettings Create() => Jolt.PInvoke.CharacterBaseSettings_Create();
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:34
///
/// Vec3 mUp = Vec3::sAxisY()
///
///
///
///
/// Vector indicating the up direction of the character
///
///
public float3 GetUp() => Jolt.PInvoke.CharacterBaseSettings_GetUp(this);
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:34
///
/// Vec3 mUp = Vec3::sAxisY()
///
///
///
///
/// Vector indicating the up direction of the character
///
///
public void SetUp(float3 value) => Jolt.PInvoke.CharacterBaseSettings_SetUp(this, value);
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:42
///
/// float mMaxSlopeAngle = DegreesToRadians(50.0f)
///
///
///
///
/// Maximum angle of slope that character can still walk on (radians).
///
///
public float GetMaxSlopeAngle() => Jolt.PInvoke.CharacterBaseSettings_GetMaxSlopeAngle(this);
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:42
///
/// float mMaxSlopeAngle = DegreesToRadians(50.0f)
///
///
///
///
/// Maximum angle of slope that character can still walk on (radians).
///
///
public void SetMaxSlopeAngle(float value) => Jolt.PInvoke.CharacterBaseSettings_SetMaxSlopeAngle(this, value);
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:45
///
/// bool mEnhancedInternalEdgeRemoval = false
///
///
///
///
/// Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with
/// internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with convex
/// edges.
///
///
public bool GetEnhancedInternalEdgeRemoval() => Jolt.PInvoke.CharacterBaseSettings_GetEnhancedInternalEdgeRemoval(this);
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:45
///
/// bool mEnhancedInternalEdgeRemoval = false
///
///
///
///
/// Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with
/// internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with convex
/// edges.
///
///
public void SetEnhancedInternalEdgeRemoval(bool value) => Jolt.PInvoke.CharacterBaseSettings_SetEnhancedInternalEdgeRemoval(this, value);
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:49
///
/// RefConst<Shape> mShape
///
///
///
///
/// Initial shape that represents the character's volume.
/// Usually this is a capsule, make sure the shape is made so that the bottom of the shape is at (0, 0, 0).
///
///
public Shape GetShape() => Jolt.PInvoke.CharacterBaseSettings_GetShape(this);
///
///
/// C++:
/// Jolt/Physics/Character/CharacterBase.h:49
///
/// RefConst<Shape> mShape
///
///
///
///
/// Initial shape that represents the character's volume.
/// Usually this is a capsule, make sure the shape is made so that the bottom of the shape is at (0, 0, 0).
///
///
public void SetShape(Shape value) => Jolt.PInvoke.CharacterBaseSettings_SetShape(this, value);
public void AddRef() => Jolt.PInvoke.CharacterBaseSettings_AddRef(this);
public void Release() => Jolt.PInvoke.CharacterBaseSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.CharacterBaseSettings_GetRefCount(this);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}