//
// 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();
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_Stabilize")]
public static partial Brutal.Bool8 RagdollSettings_Stabilize(RagdollSettings self);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CalculateConstraintPriorities")]
public static partial void RagdollSettings_CalculateConstraintPriorities(
RagdollSettings self,
uint basePriority
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_DisableParentChildCollisions")]
public static partial void RagdollSettings_DisableParentChildCollisions(
RagdollSettings self,
float4x4* jointMatrices,
uint jointMatricesCount,
float minSeparationDistance,
out uint outBufferCheck
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_SaveBinaryState")]
public static partial void RagdollSettings_SaveBinaryState(
RagdollSettings self,
StreamOut stream,
Brutal.Bool8 saveShapes,
Brutal.Bool8 saveGroupFilter
);
///
///
/// Restore a saved ragdoll from inStream
///
///
/// C++:
/// Jolt/Physics/Ragdoll/Ragdoll.h:58
///
/// static RagdollResult sRestoreFromBinaryState(StreamIn &inStream)
///
///
///
///
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
///
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_RestoreFromBinaryState")]
public static partial RagdollSettings RagdollSettings_RestoreFromBinaryState(StreamIn stream);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CreateRagdoll")]
public static partial Ragdoll RagdollSettings_CreateRagdoll(
RagdollSettings self,
uint collisionGroup,
ulong userData,
PhysicsSystem system,
out uint outBufferCheck
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetSkeleton")]
public static partial Skeleton RagdollSettings_GetSkeleton(RagdollSettings self);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CalculateBodyIndexToConstraintIndex")]
public static partial void RagdollSettings_CalculateBodyIndexToConstraintIndex(RagdollSettings self);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetBodyIndexToConstraintIndex")]
public static partial void RagdollSettings_GetBodyIndexToConstraintIndex(
RagdollSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetConstraintIndexForBodyIndex")]
public static partial int RagdollSettings_GetConstraintIndexForBodyIndex(
RagdollSettings self,
int bodyIndex,
out uint outInRange
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_CalculateConstraintIndexToBodyIdxPair")]
public static partial void RagdollSettings_CalculateConstraintIndexToBodyIdxPair(RagdollSettings self);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetConstraintIndexToBodyIdxPair")]
public static partial void RagdollSettings_GetConstraintIndexToBodyIdxPair(
RagdollSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetBodyIndicesForConstraintIndex")]
public static partial int2 RagdollSettings_GetBodyIndicesForConstraintIndex(
RagdollSettings self,
int constraintIndex,
out uint outInRange
);
///
///
/// Serialises this object into buffer as a Jolt object stream and returns the total size of that
/// stream; nothing is written past the end of the buffer. Returns 0 when the object can't be written;
/// call Jolt.GetLastError() for Jolt's error message.
///
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_SaveObjectStream")]
public static partial nuint RagdollSettings_SaveObjectStream(
RagdollSettings self,
byte* buffer,
nuint bufferCount,
ObjectStreamType streamType
);
///
///
/// Reads a text or binary object stream and returns a null handle when it can't be read; call
/// Jolt.GetLastError() for Jolt's error message. A truncated stream can still read back as an object
/// with null references. A non-null return carries a reference the caller owns.
///
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_RestoreFromObjectStream")]
public static partial RagdollSettings RagdollSettings_RestoreFromObjectStream(byte* data, nuint dataCount);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_SetPartCount")]
public static partial void RagdollSettings_SetPartCount(RagdollSettings self, int count);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetPartToParent")]
public static partial TwoBodyConstraintSettings RagdollSettings_GetPartToParent(
RagdollSettings self,
int index
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_SetPartToParent")]
public static partial void RagdollSettings_SetPartToParent(
RagdollSettings self,
int index,
TwoBodyConstraintSettings constraint
);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_SetSkeleton")]
public static partial void RagdollSettings_SetSkeleton(RagdollSettings self, Skeleton value);
///
[LibraryImport("jolt", EntryPoint = "RagdollSettings_GetParts")]
public static partial void RagdollSettings_GetParts(RagdollSettings self, out NativeStridedView outResult);
[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);
}
}
}