[AlternateIKSystem] Slight cleanup of BodyControls

This commit is contained in:
NotAKidoS 2023-07-12 12:14:08 -05:00
parent 16e44f7c35
commit 684b330a4c
4 changed files with 71 additions and 65 deletions

View file

@ -124,7 +124,7 @@ internal class IKHandlerDesktop : IKHandler
{
// Lerp locomotion weight, lerp to BodyControl.TrackingUpright???
float targetWeight =
(BodyControl.TrackingAll && BodyControl.TrackingLocomotion && BodyControl.TrackingUpright > 0.8f)
(BodyControl.TrackingAll && BodyControl.TrackingLocomotion && BodyControl.AvatarUpright > 0.8f)
? 1f
: 0.0f;
_locomotionWeight = Mathf.Lerp(_locomotionWeight, targetWeight, Time.deltaTime * 20f);