// // 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:53 ///
/// class CharacterBase : public RefTarget<CharacterBase>, public NonCopyable ///
///
/// /// /// Base class for character class /// /// [InteropHandle] public readonly partial struct CharacterBase : IDisposable { /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:83 ///
/// enum class EGroundState ///
///
public enum EGroundState : int { /// /// /// Character is on the ground and can move freely. /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:85 ///
/// OnGround ///
///
OnGround, /// /// /// Character is on a slope that is too steep and can't climb up any further. The caller should start /// applying downward velocity if sliding from the slope is desired. /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:86 ///
/// OnSteepGround ///
///
OnSteepGround, /// /// /// Character is touching an object, but is not supported by it and should fall. The GetGroundXXX /// functions will return information about the touched object. /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:87 ///
/// NotSupported ///
///
NotSupported, /// /// /// Character is in the air and is not touching anything. /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:88 ///
/// InAir ///
///
InAir, } /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:59 ///
/// CharacterBase(const CharacterBaseSettings *inSettings, PhysicsSystem *inSystem) ///
///
/// /// /// Constructor /// /// public static CharacterBase Create(CharacterBaseSettings settings, PhysicsSystem system) => Jolt.PInvoke.CharacterBase_Create(settings, system); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:65 ///
/// void SetMaxSlopeAngle(float inMaxSlopeAngle) ///
///
/// /// /// Set the maximum angle of slope that character can still walk on (radians) /// /// public void SetMaxSlopeAngle(float maxSlopeAngle) => Jolt.PInvoke.CharacterBase_SetMaxSlopeAngle(this, maxSlopeAngle); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:66 ///
/// float GetCosMaxSlopeAngle() const ///
///
public float GetCosMaxSlopeAngle() => Jolt.PInvoke.CharacterBase_GetCosMaxSlopeAngle(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:69 ///
/// void SetUp(Vec3Arg inUp) ///
///
/// /// /// Set the up vector for the character /// /// public void SetUp(float3 up) => Jolt.PInvoke.CharacterBase_SetUp(this, up); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:70 ///
/// Vec3 GetUp() const ///
///
public float3 GetUp() => Jolt.PInvoke.CharacterBase_GetUp(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:73 ///
/// bool IsSlopeTooSteep(Vec3Arg inNormal) const ///
///
/// /// /// Check if the normal of the ground surface is too steep to walk on /// /// public bool IsSlopeTooSteep(float3 normal) => Jolt.PInvoke.CharacterBase_IsSlopeTooSteep(this, normal); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:81 ///
/// const Shape * GetShape() const ///
///
/// /// /// Get the current shape that the character is using. /// /// public Shape GetShape() => Jolt.PInvoke.CharacterBase_GetShape(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:92 ///
/// static const char * sToString(EGroundState inState) ///
///
/// /// /// Debug function to convert enum values to string /// /// public static unsafe RefString8 sToString(CharacterBase.EGroundState state) => (Ptr)Jolt.PInvoke.CharacterBase_sToString(state); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:97 ///
/// EGroundState GetGroundState() const ///
///
/// /// /// Current ground state /// /// public CharacterBase.EGroundState GetGroundState() => Jolt.PInvoke.CharacterBase_GetGroundState(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:100 ///
/// bool IsSupported() const ///
///
/// /// /// Returns true if the player is supported by normal or steep ground /// /// public bool IsSupported() => Jolt.PInvoke.CharacterBase_IsSupported(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:103 ///
/// RVec3 GetGroundPosition() const ///
///
/// /// /// Get the contact point with the ground /// /// public float3 GetGroundPosition() => Jolt.PInvoke.CharacterBase_GetGroundPosition(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:106 ///
/// Vec3 GetGroundNormal() const ///
///
/// /// /// Get the contact normal with the ground /// /// public float3 GetGroundNormal() => Jolt.PInvoke.CharacterBase_GetGroundNormal(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:109 ///
/// Vec3 GetGroundVelocity() const ///
///
/// /// /// Velocity in world space of ground /// /// public float3 GetGroundVelocity() => Jolt.PInvoke.CharacterBase_GetGroundVelocity(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:112 ///
/// const PhysicsMaterial * GetGroundMaterial() const ///
///
/// /// /// Material that the character is standing on /// /// public PhysicsMaterial GetGroundMaterial() => Jolt.PInvoke.CharacterBase_GetGroundMaterial(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:115 ///
/// BodyID GetGroundBodyID() const ///
///
/// /// /// BodyID of the object the character is standing on. Note may have been removed! /// /// public uint GetGroundBodyID() => Jolt.PInvoke.CharacterBase_GetGroundBodyID(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:118 ///
/// SubShapeID GetGroundSubShapeID() const ///
///
/// /// /// Sub part of the body that we're standing on. /// /// public uint GetGroundSubShapeID() => Jolt.PInvoke.CharacterBase_GetGroundSubShapeID(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterBase.h:121 ///
/// uint64 GetGroundUserData() const ///
///
/// /// /// User data value of the body that we're standing on /// /// public ulong GetGroundUserData() => Jolt.PInvoke.CharacterBase_GetGroundUserData(this); public void AddRef() => Jolt.PInvoke.CharacterBase_AddRef(this); public void Release() => Jolt.PInvoke.CharacterBase_Release(this); public uint GetRefCount() => Jolt.PInvoke.CharacterBase_GetRefCount(this); public void Dispose() { if (IsNull()) return; Release(); } } }