//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Skeleton/SkeletonMapper.h:13
///
/// class SkeletonMapper : public RefTarget<SkeletonMapper>
///
///
///
///
/// Class that is able to map a low detail (ragdoll) skeleton to a high detail (animation) skeleton and vice
/// versa
///
///
[InteropHandle]
public readonly partial struct SkeletonMapper : IDisposable
{
public static SkeletonMapper Create() => Jolt.PInvoke.SkeletonMapper_Create();
///
///
/// C++:
/// Jolt/Skeleton/SkeletonMapper.h:68
///
/// static bool sDefaultCanMapJoint(const Skeleton *inSkeleton1, int inIndex1, const Skeleton *inSkeleton2, int inIndex2)
///
///
///
///
/// Default function that checks if the names of the joints are equal
///
///
public static bool sDefaultCanMapJoint(Skeleton skeleton1, int index1, Skeleton skeleton2, int index2) => Jolt.PInvoke.SkeletonMapper_sDefaultCanMapJoint(skeleton1, index1, skeleton2, index2);
///
///
/// C++:
/// Jolt/Skeleton/SkeletonMapper.h:115
///
/// int GetMappedJointIdx(int inJoint1Idx) const
///
///
///
///
/// Search through the directly mapped joints (mMappings) and find inJoint1Idx, returns the corresponding
/// Joint2Idx or -1 if not found.
///
///
public int GetMappedJointIdx(int joint1Idx) => Jolt.PInvoke.SkeletonMapper_GetMappedJointIdx(this, joint1Idx);
///
///
/// C++:
/// Jolt/Skeleton/SkeletonMapper.h:118
///
/// bool IsJointTranslationLocked(int inJoint2Idx) const
///
///
///
///
/// Search through the locked translations (mLockedTranslations) and find if joint inJoint2Idx is locked.
///
///
public bool IsJointTranslationLocked(int joint2Idx) => Jolt.PInvoke.SkeletonMapper_IsJointTranslationLocked(this, joint2Idx);
public void AddRef() => Jolt.PInvoke.SkeletonMapper_AddRef(this);
public void Release() => Jolt.PInvoke.SkeletonMapper_Release(this);
public uint GetRefCount() => Jolt.PInvoke.SkeletonMapper_GetRefCount(this);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}