mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
28 lines
No EOL
835 B
C#
28 lines
No EOL
835 B
C#
using RootMotion.FinalIK;
|
|
|
|
namespace NAK.DesktopVRIK.VRIKHelper;
|
|
|
|
// I don't think this was needed at all, but it looks fancy.
|
|
//https://github.com/knah/VRCMods/blob/master/IKTweaks/CachedSolver.cs
|
|
|
|
public struct CachedSolver
|
|
{
|
|
public readonly IKSolverVR Solver;
|
|
public readonly IKSolverVR.Spine Spine;
|
|
public readonly IKSolverVR.Leg LeftLeg;
|
|
public readonly IKSolverVR.Leg RightLeg;
|
|
public readonly IKSolverVR.Arm LeftArm;
|
|
public readonly IKSolverVR.Arm RightArm;
|
|
public readonly IKSolverVR.Locomotion Locomotion;
|
|
|
|
public CachedSolver(IKSolverVR solver)
|
|
{
|
|
Solver = solver;
|
|
Spine = solver.spine;
|
|
LeftArm = solver.leftArm;
|
|
LeftLeg = solver.leftLeg;
|
|
RightArm = solver.rightArm;
|
|
RightLeg = solver.rightLeg;
|
|
Locomotion = solver.locomotion;
|
|
}
|
|
} |