mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 14:59:23 +00:00
[DesktopVRIK[ Add temp BodySystem Reset for DesktopVRSwitch.
This commit is contained in:
parent
d21018001e
commit
af4bff4464
1 changed files with 11 additions and 0 deletions
|
@ -156,6 +156,16 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
void ResetBodySystem()
|
||||
{
|
||||
// DesktopVRSwitch should handle this, but I am not pushing an update yet.
|
||||
BodySystem.TrackingEnabled = true;
|
||||
BodySystem.TrackingPositionWeight = 1f;
|
||||
BodySystem.isCalibratedAsFullBody = false;
|
||||
BodySystem.isCalibrating = false;
|
||||
BodySystem.isRecalibration = false;
|
||||
}
|
||||
|
||||
void ResetAvatarLocalPosition()
|
||||
{
|
||||
// Reset avatar offset
|
||||
|
@ -171,6 +181,7 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
|||
if (animator != null && animator.avatar != null && animator.avatar.isHuman)
|
||||
{
|
||||
Calibrator.CalibrateDesktopVRIK(animator);
|
||||
ResetBodySystem();
|
||||
ResetDesktopVRIK();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue