mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 15:29:22 +00:00
[DesktopVRIK] Clean up VRIK calibration and configuration. Add NetIKPass.
This commit is contained in:
parent
9c627d3cce
commit
d21018001e
11 changed files with 681 additions and 593 deletions
28
DesktopVRIK/VRIKHelpers/CachedSolver.cs
Normal file
28
DesktopVRIK/VRIKHelpers/CachedSolver.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue