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

183 lines
9.7 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
{
[LibraryImport("jolt", EntryPoint = "RagdollSettings_Create")]
public static partial RagdollSettings RagdollSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L28">Jolt/Physics/Ragdoll/Ragdoll.h:28</see>
/// <br/>
/// <c>bool Stabilize()</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Stabilize the constraints of the ragdoll
/// @return True on success, false on failure.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_Stabilize")]
public static partial Brutal.Bool8 RagdollSettings_Stabilize(RagdollSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L33">Jolt/Physics/Ragdoll/Ragdoll.h:33</see>
/// <br/>
/// <c>void CalculateConstraintPriorities(uint32 inBasePriority = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Initializes the constraint priorities so that constraints near the leaves of the ragdoll have a lower priority
/// than constraints near the root of the ragdoll.
/// @param inBasePriority The lowest priority that will be used in the ragdoll.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CalculateConstraintPriorities")]
public static partial void RagdollSettings_CalculateConstraintPriorities(RagdollSettings self, uint basePriority);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L53">Jolt/Physics/Ragdoll/Ragdoll.h:53</see>
/// <br/>
/// <c>void SaveBinaryState(StreamOut &amp;inStream, bool inSaveShapes, bool inSaveGroupFilter) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Saves the state of this object in binary form to inStream.
/// @param inStream The stream to save the state to
/// @param inSaveShapes If the shapes should be saved as well (these could be shared between ragdolls, in which case the calling application may want to write custom code to restore them)
/// @param inSaveGroupFilter If the group filter should be saved as well (these could be shared)
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_SaveBinaryState")]
public static partial void RagdollSettings_SaveBinaryState(RagdollSettings self, StreamOut stream, Brutal.Bool8 saveShapes, Brutal.Bool8 saveGroupFilter);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L58">Jolt/Physics/Ragdoll/Ragdoll.h:58</see>
/// <br/>
/// <c>static RagdollResult sRestoreFromBinaryState(StreamIn &amp;inStream)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Restore a saved ragdoll from inStream
/// </para>
/// <para>
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_sRestoreFromBinaryState")]
public static partial RagdollSettings RagdollSettings_sRestoreFromBinaryState(StreamIn stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L62">Jolt/Physics/Ragdoll/Ragdoll.h:62</see>
/// <br/>
/// <c>Ragdoll * CreateRagdoll(CollisionGroup::GroupID inCollisionGroup, uint64 inUserData, PhysicsSystem *inSystem) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Create ragdoll instance from these settings
/// @return Newly created ragdoll or null when out of bodies
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CreateRagdoll")]
public static partial Ragdoll RagdollSettings_CreateRagdoll(RagdollSettings self, uint collisionGroup, ulong userData, PhysicsSystem system);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L65">Jolt/Physics/Ragdoll/Ragdoll.h:65</see>
/// <br/>
/// <c>const Skeleton * GetSkeleton() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access to the skeleton of this ragdoll
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetSkeleton")]
public static partial Skeleton RagdollSettings_GetSkeleton(RagdollSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L69">Jolt/Physics/Ragdoll/Ragdoll.h:69</see>
/// <br/>
/// <c>void CalculateBodyIndexToConstraintIndex()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate the map needed for GetBodyIndexToConstraintIndex()
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CalculateBodyIndexToConstraintIndex")]
public static partial void RagdollSettings_CalculateBodyIndexToConstraintIndex(RagdollSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L76">Jolt/Physics/Ragdoll/Ragdoll.h:76</see>
/// <br/>
/// <c>int GetConstraintIndexForBodyIndex(int inBodyIndex) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Map a single body index to a constraint index
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetConstraintIndexForBodyIndex")]
public static partial int RagdollSettings_GetConstraintIndexForBodyIndex(RagdollSettings self, int bodyIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L79">Jolt/Physics/Ragdoll/Ragdoll.h:79</see>
/// <br/>
/// <c>void CalculateConstraintIndexToBodyIdxPair()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate the map needed for GetConstraintIndexToBodyIdxPair()
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CalculateConstraintIndexToBodyIdxPair")]
public static partial void RagdollSettings_CalculateConstraintIndexToBodyIdxPair(RagdollSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Ragdoll/Ragdoll.h#L119">Jolt/Physics/Ragdoll/Ragdoll.h:119</see>
/// <br/>
/// <c>Ref&lt;Skeleton&gt; mSkeleton</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The skeleton for this ragdoll
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "RagdollSettings_SetSkeleton")]
public static partial void RagdollSettings_SetSkeleton(RagdollSettings self, Skeleton value);
[LibraryImport("jolt", EntryPoint = "RagdollSettings_AddRef")]
public static partial void RagdollSettings_AddRef(RagdollSettings self);
[LibraryImport("jolt", EntryPoint = "RagdollSettings_Release")]
public static partial void RagdollSettings_Release(RagdollSettings self);
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetRefCount")]
public static partial uint RagdollSettings_GetRefCount(RagdollSettings self);
}
}
}