brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/CharacterBase.gen.cs
2026-10-15 14:12:02 +13:00

266 lines
13 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
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L59">Jolt/Physics/Character/CharacterBase.h:59</see>
/// <br/>
/// <c>CharacterBase(const CharacterBaseSettings *inSettings, PhysicsSystem *inSystem)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_Create")]
public static partial CharacterBase CharacterBase_Create(CharacterBaseSettings settings, PhysicsSystem system);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L65">Jolt/Physics/Character/CharacterBase.h:65</see>
/// <br/>
/// <c>void SetMaxSlopeAngle(float inMaxSlopeAngle)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the maximum angle of slope that character can still walk on (radians)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_SetMaxSlopeAngle")]
public static partial void CharacterBase_SetMaxSlopeAngle(CharacterBase self, float maxSlopeAngle);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L66">Jolt/Physics/Character/CharacterBase.h:66</see>
/// <br/>
/// <c>float GetCosMaxSlopeAngle() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetCosMaxSlopeAngle")]
public static partial float CharacterBase_GetCosMaxSlopeAngle(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L69">Jolt/Physics/Character/CharacterBase.h:69</see>
/// <br/>
/// <c>void SetUp(Vec3Arg inUp)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the up vector for the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_SetUp")]
public static partial void CharacterBase_SetUp(CharacterBase self, float3 up);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L70">Jolt/Physics/Character/CharacterBase.h:70</see>
/// <br/>
/// <c>Vec3 GetUp() const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetUp")]
public static partial float3 CharacterBase_GetUp(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L73">Jolt/Physics/Character/CharacterBase.h:73</see>
/// <br/>
/// <c>bool IsSlopeTooSteep(Vec3Arg inNormal) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if the normal of the ground surface is too steep to walk on
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_IsSlopeTooSteep")]
public static partial Brutal.Bool8 CharacterBase_IsSlopeTooSteep(CharacterBase self, float3 normal);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L81">Jolt/Physics/Character/CharacterBase.h:81</see>
/// <br/>
/// <c>const Shape * GetShape() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the current shape that the character is using.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetShape")]
public static partial Shape CharacterBase_GetShape(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L92">Jolt/Physics/Character/CharacterBase.h:92</see>
/// <br/>
/// <c>static const char * sToString(EGroundState inState)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Debug function to convert enum values to string
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_sToString")]
public static partial byte* CharacterBase_sToString(CharacterBase.EGroundState state);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L97">Jolt/Physics/Character/CharacterBase.h:97</see>
/// <br/>
/// <c>EGroundState GetGroundState() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Current ground state
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundState")]
public static partial CharacterBase.EGroundState CharacterBase_GetGroundState(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L100">Jolt/Physics/Character/CharacterBase.h:100</see>
/// <br/>
/// <c>bool IsSupported() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns true if the player is supported by normal or steep ground
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_IsSupported")]
public static partial Brutal.Bool8 CharacterBase_IsSupported(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L103">Jolt/Physics/Character/CharacterBase.h:103</see>
/// <br/>
/// <c>RVec3 GetGroundPosition() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the contact point with the ground
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundPosition")]
public static partial float3 CharacterBase_GetGroundPosition(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L106">Jolt/Physics/Character/CharacterBase.h:106</see>
/// <br/>
/// <c>Vec3 GetGroundNormal() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the contact normal with the ground
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundNormal")]
public static partial float3 CharacterBase_GetGroundNormal(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L109">Jolt/Physics/Character/CharacterBase.h:109</see>
/// <br/>
/// <c>Vec3 GetGroundVelocity() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Velocity in world space of ground
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundVelocity")]
public static partial float3 CharacterBase_GetGroundVelocity(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L112">Jolt/Physics/Character/CharacterBase.h:112</see>
/// <br/>
/// <c>const PhysicsMaterial * GetGroundMaterial() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Material that the character is standing on
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundMaterial")]
public static partial PhysicsMaterial CharacterBase_GetGroundMaterial(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L115">Jolt/Physics/Character/CharacterBase.h:115</see>
/// <br/>
/// <c>BodyID GetGroundBodyID() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// BodyID of the object the character is standing on. Note may have been removed!
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundBodyID")]
public static partial uint CharacterBase_GetGroundBodyID(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L118">Jolt/Physics/Character/CharacterBase.h:118</see>
/// <br/>
/// <c>SubShapeID GetGroundSubShapeID() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sub part of the body that we're standing on.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundSubShapeID")]
public static partial uint CharacterBase_GetGroundSubShapeID(CharacterBase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterBase.h#L121">Jolt/Physics/Character/CharacterBase.h:121</see>
/// <br/>
/// <c>uint64 GetGroundUserData() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// User data value of the body that we're standing on
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetGroundUserData")]
public static partial ulong CharacterBase_GetGroundUserData(CharacterBase self);
[LibraryImport("jolt", EntryPoint = "CharacterBase_AddRef")]
public static partial void CharacterBase_AddRef(CharacterBase self);
[LibraryImport("jolt", EntryPoint = "CharacterBase_Release")]
public static partial void CharacterBase_Release(CharacterBase self);
[LibraryImport("jolt", EntryPoint = "CharacterBase_GetRefCount")]
public static partial uint CharacterBase_GetRefCount(CharacterBase self);
}
}
}