mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
test reset footsteps option
This commit is contained in:
parent
fbd767036b
commit
d3c2365a1d
4 changed files with 39 additions and 3 deletions
|
@ -154,6 +154,12 @@ public static class VRIKUtils
|
|||
initialStepHeight = Vector3.Distance(vrik.references.leftFoot.position, vrik.references.leftCalf.position) * 0.2f;
|
||||
}
|
||||
|
||||
public static void CalculateInitialFootsteps(VRIK vrik, out Vector3 initialFootstepLeft, out Vector3 initialFootstepRight)
|
||||
{
|
||||
initialFootstepLeft = vrik.references.root.InverseTransformPoint(vrik.references.leftFoot.position);
|
||||
initialFootstepRight = vrik.references.root.InverseTransformPoint(vrik.references.rightFoot.position);
|
||||
}
|
||||
|
||||
public static void SetupHeadIKTarget(VRIK vrik)
|
||||
{
|
||||
// Lazy HeadIKTarget calibration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue