mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
342 lines
18 KiB
C#
342 lines
18 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/Ragdoll/Ragdoll.h#L142">Jolt/Physics/Ragdoll/Ragdoll.h:142</see>
|
|
/// <br/>
|
|
/// <c>explicit Ragdoll(PhysicsSystem *inSystem)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_Create")]
|
|
public static partial Ragdoll Ragdoll_Create(PhysicsSystem system);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L148">Jolt/Physics/Ragdoll/Ragdoll.h:148</see>
|
|
/// <br/>
|
|
/// <c>void AddToPhysicsSystem(EActivation inActivationMode, 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 = "Ragdoll_AddToPhysicsSystem")]
|
|
public static partial void Ragdoll_AddToPhysicsSystem(Ragdoll self, EActivation activationMode, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L151">Jolt/Physics/Ragdoll/Ragdoll.h:151</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 = "Ragdoll_RemoveFromPhysicsSystem")]
|
|
public static partial void Ragdoll_RemoveFromPhysicsSystem(Ragdoll self, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L154">Jolt/Physics/Ragdoll/Ragdoll.h:154</see>
|
|
/// <br/>
|
|
/// <c>void Activate(bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Wake up all bodies in the ragdoll
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_Activate")]
|
|
public static partial void Ragdoll_Activate(Ragdoll self, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L160">Jolt/Physics/Ragdoll/Ragdoll.h:160</see>
|
|
/// <br/>
|
|
/// <c>bool IsActive(bool inLockBodies = true) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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).
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_IsActive")]
|
|
public static partial Brutal.Bool8 Ragdoll_IsActive(Ragdoll self, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L163">Jolt/Physics/Ragdoll/Ragdoll.h:163</see>
|
|
/// <br/>
|
|
/// <c>void SetGroupID(CollisionGroup::GroupID inGroupID, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the group ID on all bodies in the ragdoll
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetGroupID")]
|
|
public static partial void Ragdoll_SetGroupID(Ragdoll self, uint groupID, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L166">Jolt/Physics/Ragdoll/Ragdoll.h:166</see>
|
|
/// <br/>
|
|
/// <c>void SetPose(const SkeletonPose &inPose, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the ragdoll to a pose (calls BodyInterface::SetPositionAndRotation to instantly move the
|
|
/// ragdoll)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetPose")]
|
|
public static partial void Ragdoll_SetPose(Ragdoll self, SkeletonPose pose, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L172">Jolt/Physics/Ragdoll/Ragdoll.h:172</see>
|
|
/// <br/>
|
|
/// <c>void GetPose(SkeletonPose &outPose, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the ragdoll pose (uses the world transform of the bodies to calculate the pose)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetPose")]
|
|
public static partial void Ragdoll_GetPose(Ragdoll self, SkeletonPose pose, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L178">Jolt/Physics/Ragdoll/Ragdoll.h:178</see>
|
|
/// <br/>
|
|
/// <c>void ResetWarmStart()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This function calls ResetWarmStart on all constraints. It can be used after calling SetPose to reset
|
|
/// previous frames impulses. See: Constraint::ResetWarmStart.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_ResetWarmStart")]
|
|
public static partial void Ragdoll_ResetWarmStart(Ragdoll self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L181">Jolt/Physics/Ragdoll/Ragdoll.h:181</see>
|
|
/// <br/>
|
|
/// <c>void DriveToPoseUsingKinematics(const SkeletonPose &inPose, float inDeltaTime, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Drive the ragdoll to a specific pose by setting velocities on each of the bodies so that it will
|
|
/// reach inPose in inDeltaTime
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_DriveToPoseUsingKinematics")]
|
|
public static partial void Ragdoll_DriveToPoseUsingKinematics(Ragdoll self, SkeletonPose pose, float deltaTime, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L187">Jolt/Physics/Ragdoll/Ragdoll.h:187</see>
|
|
/// <br/>
|
|
/// <c>void DriveToPoseUsingMotors(const SkeletonPose &inPose)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Drive the ragdoll to a specific pose by activating the motors on each constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_DriveToPoseUsingMotors")]
|
|
public static partial void Ragdoll_DriveToPoseUsingMotors(Ragdoll self, SkeletonPose pose);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L190">Jolt/Physics/Ragdoll/Ragdoll.h:190</see>
|
|
/// <br/>
|
|
/// <c>void SetLinearAndAngularVelocity(Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Control the linear and velocity of all bodies in the ragdoll
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetLinearAndAngularVelocity")]
|
|
public static partial void Ragdoll_SetLinearAndAngularVelocity(Ragdoll self, float3 linearVelocity, float3 angularVelocity, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L193">Jolt/Physics/Ragdoll/Ragdoll.h:193</see>
|
|
/// <br/>
|
|
/// <c>void SetLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the world space linear velocity of all bodies in the ragdoll.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_SetLinearVelocity")]
|
|
public static partial void Ragdoll_SetLinearVelocity(Ragdoll self, float3 linearVelocity, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L196">Jolt/Physics/Ragdoll/Ragdoll.h:196</see>
|
|
/// <br/>
|
|
/// <c>void AddLinearVelocity(Vec3Arg inLinearVelocity, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Add a world space velocity (in m/s) to all bodies in the ragdoll.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_AddLinearVelocity")]
|
|
public static partial void Ragdoll_AddLinearVelocity(Ragdoll self, float3 linearVelocity, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L199">Jolt/Physics/Ragdoll/Ragdoll.h:199</see>
|
|
/// <br/>
|
|
/// <c>void AddImpulse(Vec3Arg inImpulse, bool inLockBodies = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Add impulse to all bodies of the ragdoll (center of mass of each of them)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_AddImpulse")]
|
|
public static partial void Ragdoll_AddImpulse(Ragdoll self, float3 impulse, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L202">Jolt/Physics/Ragdoll/Ragdoll.h:202</see>
|
|
/// <br/>
|
|
/// <c>void GetRootTransform(RVec3 &outPosition, Quat &outRotation, bool inLockBodies = true) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the position and orientation of the root of the ragdoll
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetRootTransform")]
|
|
public static partial void Ragdoll_GetRootTransform(Ragdoll self, out float3 position, out floatQuat rotation, Brutal.Bool8 lockBodies);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L205">Jolt/Physics/Ragdoll/Ragdoll.h:205</see>
|
|
/// <br/>
|
|
/// <c>size_t GetBodyCount() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get number of bodies in the ragdoll
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetBodyCount")]
|
|
public static partial nuint Ragdoll_GetBodyCount(Ragdoll self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L208">Jolt/Physics/Ragdoll/Ragdoll.h:208</see>
|
|
/// <br/>
|
|
/// <c>BodyID GetBodyID(int inBodyIndex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access a body ID
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetBodyID")]
|
|
public static partial uint Ragdoll_GetBodyID(Ragdoll self, int bodyIndex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L214">Jolt/Physics/Ragdoll/Ragdoll.h:214</see>
|
|
/// <br/>
|
|
/// <c>size_t GetConstraintCount() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get number of constraints in the ragdoll
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetConstraintCount")]
|
|
public static partial nuint Ragdoll_GetConstraintCount(Ragdoll self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L217">Jolt/Physics/Ragdoll/Ragdoll.h:217</see>
|
|
/// <br/>
|
|
/// <c>TwoBodyConstraint * GetConstraint(int inConstraintIndex)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access a constraint by index
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Ragdoll_GetConstraint")]
|
|
public static partial TwoBodyConstraint Ragdoll_GetConstraint(Ragdoll self, int constraintIndex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L226">Jolt/Physics/Ragdoll/Ragdoll.h:226</see>
|
|
/// <br/>
|
|
/// <c>const RagdollSettings * GetRagdollSettings() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the settings object that created this ragdoll
|
|
/// </para>
|
|
/// </remarks>
|
|
[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);
|
|
}
|
|
}
|
|
}
|