//
// 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
{
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:57
///
/// Character(const CharacterSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, uint64 inUserData, PhysicsSystem *inSystem)
///
///
///
///
/// 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
///
///
[LibraryImport("jolt", EntryPoint = "Character_Create")]
public static partial Character Character_Create(CharacterSettings settings, float3 position, floatQuat rotation, ulong userData, PhysicsSystem system);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:63
///
/// void AddToPhysicsSystem(EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true)
///
///
///
///
/// Add bodies and constraints to the system and optionally activate the bodies
///
///
[LibraryImport("jolt", EntryPoint = "Character_AddToPhysicsSystem")]
public static partial void Character_AddToPhysicsSystem(Character self, EActivation activationMode, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:66
///
/// void RemoveFromPhysicsSystem(bool inLockBodies = true)
///
///
///
///
/// Remove bodies and constraints from the system
///
///
[LibraryImport("jolt", EntryPoint = "Character_RemoveFromPhysicsSystem")]
public static partial void Character_RemoveFromPhysicsSystem(Character self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:69
///
/// void Activate(bool inLockBodies = true)
///
///
///
///
/// Wake up the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_Activate")]
public static partial void Character_Activate(Character self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:74
///
/// void PostSimulation(float inMaxSeparationDistance, bool inLockBodies = true)
///
///
///
///
/// 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)
///
///
[LibraryImport("jolt", EntryPoint = "Character_PostSimulation")]
public static partial void Character_PostSimulation(Character self, float maxSeparationDistance, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:77
///
/// void SetLinearAndAngularVelocity(Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity, bool inLockBodies = true)
///
///
///
///
/// Control the velocity of the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_SetLinearAndAngularVelocity")]
public static partial void Character_SetLinearAndAngularVelocity(Character self, float3 linearVelocity, float3 angularVelocity, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:80
///
/// Vec3 GetLinearVelocity(bool inLockBodies = true) const
///
///
///
///
/// Get the linear velocity of the character (m / s)
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetLinearVelocity")]
public static partial float3 Character_GetLinearVelocity(Character self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:83
///
/// void SetLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)
///
///
///
///
/// Set the linear velocity of the character (m / s)
///
///
[LibraryImport("jolt", EntryPoint = "Character_SetLinearVelocity")]
public static partial void Character_SetLinearVelocity(Character self, float3 linearVelocity, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:86
///
/// void AddLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)
///
///
///
///
/// Add world space linear velocity to current velocity (m / s)
///
///
[LibraryImport("jolt", EntryPoint = "Character_AddLinearVelocity")]
public static partial void Character_AddLinearVelocity(Character self, float3 linearVelocity, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:89
///
/// void AddImpulse(Vec3Arg inImpulse, bool inLockBodies = true)
///
///
///
///
/// Add impulse to the center of mass of the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_AddImpulse")]
public static partial void Character_AddImpulse(Character self, float3 impulse, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:92
///
/// BodyID GetBodyID() const
///
///
///
///
/// Get the body associated with this character
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetBodyID")]
public static partial uint Character_GetBodyID(Character self);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:95
///
/// void GetPositionAndRotation(RVec3 &outPosition, Quat &outRotation, bool inLockBodies = true) const
///
///
///
///
/// Get position / rotation of the body
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetPositionAndRotation")]
public static partial void Character_GetPositionAndRotation(Character self, out float3 position, out floatQuat rotation, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:98
///
/// void SetPositionAndRotation(RVec3Arg inPosition, QuatArg inRotation, EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true) const
///
///
///
///
/// Set the position / rotation of the body, optionally activating it.
///
///
[LibraryImport("jolt", EntryPoint = "Character_SetPositionAndRotation")]
public static partial void Character_SetPositionAndRotation(Character self, float3 position, floatQuat rotation, EActivation activationMode, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:101
///
/// RVec3 GetPosition(bool inLockBodies = true) const
///
///
///
///
/// Get the position of the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetPosition")]
public static partial float3 Character_GetPosition(Character self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:104
///
/// void SetPosition(RVec3Arg inPosition, EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true)
///
///
///
///
/// Set the position of the character, optionally activating it.
///
///
[LibraryImport("jolt", EntryPoint = "Character_SetPosition")]
public static partial void Character_SetPosition(Character self, float3 position, EActivation activationMode, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:107
///
/// Quat GetRotation(bool inLockBodies = true) const
///
///
///
///
/// Get the rotation of the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetRotation")]
public static partial floatQuat Character_GetRotation(Character self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:110
///
/// void SetRotation(QuatArg inRotation, EActivation inActivationMode = EActivation::Activate, bool inLockBodies = true)
///
///
///
///
/// Set the rotation of the character, optionally activating it.
///
///
[LibraryImport("jolt", EntryPoint = "Character_SetRotation")]
public static partial void Character_SetRotation(Character self, floatQuat rotation, EActivation activationMode, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:113
///
/// RVec3 GetCenterOfMassPosition(bool inLockBodies = true) const
///
///
///
///
/// Position of the center of mass of the underlying rigid body
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetCenterOfMassPosition")]
public static partial float3 Character_GetCenterOfMassPosition(Character self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:116
///
/// RMat44 GetWorldTransform(bool inLockBodies = true) const
///
///
///
///
/// Calculate the world transform of the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetWorldTransform")]
public static partial float4x4 Character_GetWorldTransform(Character self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:119
///
/// ObjectLayer GetLayer() const
///
///
///
///
/// Get the layer of the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_GetLayer")]
public static partial ushort Character_GetLayer(Character self);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:122
///
/// void SetLayer(ObjectLayer inLayer, bool inLockBodies = true)
///
///
///
///
/// Update the layer of the character
///
///
[LibraryImport("jolt", EntryPoint = "Character_SetLayer")]
public static partial void Character_SetLayer(Character self, ushort layer, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Character/Character.h:126
///
/// bool SetShape(const Shape *inShape, float inMaxPenetrationDepth, bool inLockBodies = true)
///
///
///
///
/// 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.
///
///
[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);
}
}
}