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

361 lines
20 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/Character.h#L57">Jolt/Physics/Character/Character.h:57</see>
/// <br/>
/// <c>Character(const CharacterSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, uint64 inUserData, PhysicsSystem *inSystem)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Constructor
/// @param inSettings The settings for the character
/// @param inPosition Initial position for the character
/// @param inRotation Initial rotation for the character (usually only around Y)
/// @param inUserData Application specific value
/// @param inSystem Physics system that this character will be added to later
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_Create")]
public static partial Character Character_Create(CharacterSettings settings, float3 position, floatQuat rotation, ulong userData, PhysicsSystem system);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L63">Jolt/Physics/Character/Character.h:63</see>
/// <br/>
/// <c>void AddToPhysicsSystem(EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Add bodies and constraints to the system and optionally activate the bodies
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_AddToPhysicsSystem")]
public static partial void Character_AddToPhysicsSystem(Character self, EActivation activationMode, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L66">Jolt/Physics/Character/Character.h:66</see>
/// <br/>
/// <c>void RemoveFromPhysicsSystem(bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Remove bodies and constraints from the system
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_RemoveFromPhysicsSystem")]
public static partial void Character_RemoveFromPhysicsSystem(Character self, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L69">Jolt/Physics/Character/Character.h:69</see>
/// <br/>
/// <c>void Activate(bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Wake up the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_Activate")]
public static partial void Character_Activate(Character self, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L74">Jolt/Physics/Character/Character.h:74</see>
/// <br/>
/// <c>void PostSimulation(float inMaxSeparationDistance, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Needs to be called after every PhysicsSystem::Update
/// @param inMaxSeparationDistance Max distance between the floor and the character to still consider the character standing on the floor
/// @param inLockBodies If the collision query should use the locking body interface (true) or the non locking body interface (false)
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_PostSimulation")]
public static partial void Character_PostSimulation(Character self, float maxSeparationDistance, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L77">Jolt/Physics/Character/Character.h:77</see>
/// <br/>
/// <c>void SetLinearAndAngularVelocity(Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Control the velocity of the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_SetLinearAndAngularVelocity")]
public static partial void Character_SetLinearAndAngularVelocity(Character self, float3 linearVelocity, float3 angularVelocity, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L80">Jolt/Physics/Character/Character.h:80</see>
/// <br/>
/// <c>Vec3 GetLinearVelocity(bool inLockBodies = true) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the linear velocity of the character (m / s)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetLinearVelocity")]
public static partial float3 Character_GetLinearVelocity(Character self, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L83">Jolt/Physics/Character/Character.h:83</see>
/// <br/>
/// <c>void SetLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the linear velocity of the character (m / s)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_SetLinearVelocity")]
public static partial void Character_SetLinearVelocity(Character self, float3 linearVelocity, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L86">Jolt/Physics/Character/Character.h:86</see>
/// <br/>
/// <c>void AddLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Add world space linear velocity to current velocity (m / s)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_AddLinearVelocity")]
public static partial void Character_AddLinearVelocity(Character self, float3 linearVelocity, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L89">Jolt/Physics/Character/Character.h:89</see>
/// <br/>
/// <c>void AddImpulse(Vec3Arg inImpulse, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Add impulse to the center of mass of the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_AddImpulse")]
public static partial void Character_AddImpulse(Character self, float3 impulse, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L92">Jolt/Physics/Character/Character.h:92</see>
/// <br/>
/// <c>BodyID GetBodyID() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the body associated with this character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetBodyID")]
public static partial uint Character_GetBodyID(Character self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L95">Jolt/Physics/Character/Character.h:95</see>
/// <br/>
/// <c>void GetPositionAndRotation(RVec3 &amp;outPosition, Quat &amp;outRotation, bool inLockBodies = true) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get position / rotation of the body
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetPositionAndRotation")]
public static partial void Character_GetPositionAndRotation(Character self, out float3 position, out floatQuat rotation, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L98">Jolt/Physics/Character/Character.h:98</see>
/// <br/>
/// <c>void SetPositionAndRotation(RVec3Arg inPosition, QuatArg inRotation, EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the position / rotation of the body, optionally activating it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_SetPositionAndRotation")]
public static partial void Character_SetPositionAndRotation(Character self, float3 position, floatQuat rotation, EActivation activationMode, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L101">Jolt/Physics/Character/Character.h:101</see>
/// <br/>
/// <c>RVec3 GetPosition(bool inLockBodies = true) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the position of the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetPosition")]
public static partial float3 Character_GetPosition(Character self, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L104">Jolt/Physics/Character/Character.h:104</see>
/// <br/>
/// <c>void SetPosition(RVec3Arg inPosition, EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the position of the character, optionally activating it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_SetPosition")]
public static partial void Character_SetPosition(Character self, float3 position, EActivation activationMode, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L107">Jolt/Physics/Character/Character.h:107</see>
/// <br/>
/// <c>Quat GetRotation(bool inLockBodies = true) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the rotation of the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetRotation")]
public static partial floatQuat Character_GetRotation(Character self, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L110">Jolt/Physics/Character/Character.h:110</see>
/// <br/>
/// <c>void SetRotation(QuatArg inRotation, EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the rotation of the character, optionally activating it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_SetRotation")]
public static partial void Character_SetRotation(Character self, floatQuat rotation, EActivation activationMode, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L113">Jolt/Physics/Character/Character.h:113</see>
/// <br/>
/// <c>RVec3 GetCenterOfMassPosition(bool inLockBodies = true) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Position of the center of mass of the underlying rigid body
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetCenterOfMassPosition")]
public static partial float3 Character_GetCenterOfMassPosition(Character self, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L116">Jolt/Physics/Character/Character.h:116</see>
/// <br/>
/// <c>RMat44 GetWorldTransform(bool inLockBodies = true) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate the world transform of the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetWorldTransform")]
public static partial float4x4 Character_GetWorldTransform(Character self, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L119">Jolt/Physics/Character/Character.h:119</see>
/// <br/>
/// <c>ObjectLayer GetLayer() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the layer of the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_GetLayer")]
public static partial ushort Character_GetLayer(Character self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L122">Jolt/Physics/Character/Character.h:122</see>
/// <br/>
/// <c>void SetLayer(ObjectLayer inLayer, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Update the layer of the character
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_SetLayer")]
public static partial void Character_SetLayer(Character self, ushort layer, Brutal.Bool8 lockBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/Character.h#L126">Jolt/Physics/Character/Character.h:126</see>
/// <br/>
/// <c>bool SetShape(const Shape *inShape, float inMaxPenetrationDepth, bool inLockBodies = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Switch the shape of the character (e.g. for stance). When inMaxPenetrationDepth is not FLT_MAX, it checks
/// if the new shape collides before switching shape. Returns true if the switch succeeded.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Character_SetShape")]
public static partial Brutal.Bool8 Character_SetShape(Character self, Shape shape, float maxPenetrationDepth, Brutal.Bool8 lockBodies);
[LibraryImport("jolt", EntryPoint = "Character_AddRef")]
public static partial void Character_AddRef(Character self);
[LibraryImport("jolt", EntryPoint = "Character_Release")]
public static partial void Character_Release(Character self);
[LibraryImport("jolt", EntryPoint = "Character_GetRefCount")]
public static partial uint Character_GetRefCount(Character self);
[LibraryImport("jolt", EntryPoint = "Character_AsCharacterBase")]
public static partial CharacterBase Character_AsCharacterBase(Character self);
}
}
}