//
// 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/Ragdoll/Ragdoll.h:142
///
/// explicit Ragdoll(PhysicsSystem *inSystem)
///
///
///
///
/// Constructor
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_Create")]
public static partial Ragdoll Ragdoll_Create(PhysicsSystem system);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:148
///
/// void AddToPhysicsSystem(EActivation inActivationMode, bool inLockBodies = true)
///
///
///
///
/// Add bodies and constraints to the system and optionally activate the bodies
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_AddToPhysicsSystem")]
public static partial void Ragdoll_AddToPhysicsSystem(Ragdoll self, EActivation activationMode, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:151
///
/// void RemoveFromPhysicsSystem(bool inLockBodies = true)
///
///
///
///
/// Remove bodies and constraints from the system
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_RemoveFromPhysicsSystem")]
public static partial void Ragdoll_RemoveFromPhysicsSystem(Ragdoll self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:154
///
/// void Activate(bool inLockBodies = true)
///
///
///
///
/// Wake up all bodies in the ragdoll
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_Activate")]
public static partial void Ragdoll_Activate(Ragdoll self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:160
///
/// bool IsActive(bool inLockBodies = true) const
///
///
///
///
/// Check if one or more of the bodies in the ragdoll are active.
/// Note that this involves locking the bodies (if inLockBodies is true) and looping over them. An alternative and possibly faster
/// way could be to install a BodyActivationListener and count the number of active bodies of a ragdoll as they're activated / deactivated
/// (basically check if the body that activates / deactivates is in GetBodyIDs() and increment / decrement a counter).
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_IsActive")]
public static partial Brutal.Bool8 Ragdoll_IsActive(Ragdoll self, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:163
///
/// void SetGroupID(CollisionGroup::GroupID inGroupID, bool inLockBodies = true)
///
///
///
///
/// Set the group ID on all bodies in the ragdoll
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetGroupID")]
public static partial void Ragdoll_SetGroupID(Ragdoll self, uint groupID, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:166
///
/// void SetPose(const SkeletonPose &inPose, bool inLockBodies = true)
///
///
///
///
/// Set the ragdoll to a pose (calls BodyInterface::SetPositionAndRotation to instantly move the
/// ragdoll)
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetPose")]
public static partial void Ragdoll_SetPose(Ragdoll self, SkeletonPose pose, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:172
///
/// void GetPose(SkeletonPose &outPose, bool inLockBodies = true)
///
///
///
///
/// Get the ragdoll pose (uses the world transform of the bodies to calculate the pose)
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetPose")]
public static partial void Ragdoll_GetPose(Ragdoll self, SkeletonPose pose, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:178
///
/// void ResetWarmStart()
///
///
///
///
/// This function calls ResetWarmStart on all constraints. It can be used after calling SetPose to reset
/// previous frames impulses. See: Constraint::ResetWarmStart.
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_ResetWarmStart")]
public static partial void Ragdoll_ResetWarmStart(Ragdoll self);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:181
///
/// void DriveToPoseUsingKinematics(const SkeletonPose &inPose, float inDeltaTime, bool inLockBodies = true)
///
///
///
///
/// Drive the ragdoll to a specific pose by setting velocities on each of the bodies so that it will
/// reach inPose in inDeltaTime
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_DriveToPoseUsingKinematics")]
public static partial void Ragdoll_DriveToPoseUsingKinematics(Ragdoll self, SkeletonPose pose, float deltaTime, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:187
///
/// void DriveToPoseUsingMotors(const SkeletonPose &inPose)
///
///
///
///
/// Drive the ragdoll to a specific pose by activating the motors on each constraint
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_DriveToPoseUsingMotors")]
public static partial void Ragdoll_DriveToPoseUsingMotors(Ragdoll self, SkeletonPose pose);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:190
///
/// void SetLinearAndAngularVelocity(Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity, bool inLockBodies = true)
///
///
///
///
/// Control the linear and velocity of all bodies in the ragdoll
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetLinearAndAngularVelocity")]
public static partial void Ragdoll_SetLinearAndAngularVelocity(Ragdoll self, float3 linearVelocity, float3 angularVelocity, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:193
///
/// void SetLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)
///
///
///
///
/// Set the world space linear velocity of all bodies in the ragdoll.
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetLinearVelocity")]
public static partial void Ragdoll_SetLinearVelocity(Ragdoll self, float3 linearVelocity, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:196
///
/// void AddLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)
///
///
///
///
/// Add a world space velocity (in m/s) to all bodies in the ragdoll.
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_AddLinearVelocity")]
public static partial void Ragdoll_AddLinearVelocity(Ragdoll self, float3 linearVelocity, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:199
///
/// void AddImpulse(Vec3Arg inImpulse, bool inLockBodies = true)
///
///
///
///
/// Add impulse to all bodies of the ragdoll (center of mass of each of them)
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_AddImpulse")]
public static partial void Ragdoll_AddImpulse(Ragdoll self, float3 impulse, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:202
///
/// void GetRootTransform(RVec3 &outPosition, Quat &outRotation, bool inLockBodies = true) const
///
///
///
///
/// Get the position and orientation of the root of the ragdoll
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetRootTransform")]
public static partial void Ragdoll_GetRootTransform(Ragdoll self, out float3 position, out floatQuat rotation, Brutal.Bool8 lockBodies);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:205
///
/// size_t GetBodyCount() const
///
///
///
///
/// Get number of bodies in the ragdoll
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetBodyCount")]
public static partial nuint Ragdoll_GetBodyCount(Ragdoll self);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:208
///
/// BodyID GetBodyID(int inBodyIndex) const
///
///
///
///
/// Access a body ID
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetBodyID")]
public static partial uint Ragdoll_GetBodyID(Ragdoll self, int bodyIndex);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:214
///
/// size_t GetConstraintCount() const
///
///
///
///
/// Get number of constraints in the ragdoll
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetConstraintCount")]
public static partial nuint Ragdoll_GetConstraintCount(Ragdoll self);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:217
///
/// TwoBodyConstraint * GetConstraint(int inConstraintIndex)
///
///
///
///
/// Access a constraint by index
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetConstraint")]
public static partial TwoBodyConstraint Ragdoll_GetConstraint(Ragdoll self, int constraintIndex);
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:226
///
/// const RagdollSettings * GetRagdollSettings() const
///
///
///
///
/// Get the settings object that created this ragdoll
///
///
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetRagdollSettings")]
public static partial RagdollSettings Ragdoll_GetRagdollSettings(Ragdoll self);
[LibraryImport("jolt", EntryPoint = "Ragdoll_AddRef")]
public static partial void Ragdoll_AddRef(Ragdoll self);
[LibraryImport("jolt", EntryPoint = "Ragdoll_Release")]
public static partial void Ragdoll_Release(Ragdoll self);
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetRefCount")]
public static partial uint Ragdoll_GetRefCount(Ragdoll self);
}
}
}