Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enables all avatars to make jumps by ignoring plantfeet setting #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CustomAvatar/VRIK/IKSolverVR.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using System.Collections;
using System;
using AvatarScriptPack;
Expand Down Expand Up @@ -415,7 +415,11 @@ private void Solve() {
leg.ApplyOffsets();
}

#if PLUGIN
if (true) {
#else
if (!plantFeet) {
#endif
spine.InverseTranslateToHead(legs, false, false, bodyOffset, 1f);

foreach (Leg leg in legs) leg.TranslateRoot(spine.pelvis.solverPosition, spine.pelvis.solverRotation);
Expand Down Expand Up @@ -593,4 +597,4 @@ private Vector3 GetPelvisOffset() {
return lastOffset;
}
}
}
}