mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 11:29:23 +00:00
FBT rotation fix
This commit is contained in:
parent
1da30738c2
commit
73efcadf99
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ namespace ml_prm
|
||||||
bool m_inVr = false;
|
bool m_inVr = false;
|
||||||
VRIK m_vrIK = null;
|
VRIK m_vrIK = null;
|
||||||
bool m_applyHipsPosition = false;
|
bool m_applyHipsPosition = false;
|
||||||
|
bool m_applyHipsRotation = false;
|
||||||
|
|
||||||
bool m_enabled = false;
|
bool m_enabled = false;
|
||||||
bool m_forcedSwitch = false;
|
bool m_forcedSwitch = false;
|
||||||
|
@ -536,6 +537,8 @@ namespace ml_prm
|
||||||
BodySystem.TrackingPositionWeight = 0f;
|
BodySystem.TrackingPositionWeight = 0f;
|
||||||
m_applyHipsPosition = IKSystem.Instance.applyOriginalHipPosition;
|
m_applyHipsPosition = IKSystem.Instance.applyOriginalHipPosition;
|
||||||
IKSystem.Instance.applyOriginalHipPosition = true;
|
IKSystem.Instance.applyOriginalHipPosition = true;
|
||||||
|
m_applyHipsRotation = IKSystem.Instance.applyOriginalHipRotation;
|
||||||
|
IKSystem.Instance.applyOriginalHipRotation = true;
|
||||||
|
|
||||||
PlayerSetup.Instance.animatorManager.SetAnimatorParameterTrigger("CancelEmote");
|
PlayerSetup.Instance.animatorManager.SetAnimatorParameterTrigger("CancelEmote");
|
||||||
m_ragdolledParameter.SetValue(true);
|
m_ragdolledParameter.SetValue(true);
|
||||||
|
@ -584,6 +587,7 @@ namespace ml_prm
|
||||||
}
|
}
|
||||||
BodySystem.TrackingPositionWeight = 1f;
|
BodySystem.TrackingPositionWeight = 1f;
|
||||||
IKSystem.Instance.applyOriginalHipPosition = m_applyHipsPosition;
|
IKSystem.Instance.applyOriginalHipPosition = m_applyHipsPosition;
|
||||||
|
IKSystem.Instance.applyOriginalHipRotation = m_applyHipsRotation;
|
||||||
|
|
||||||
if(m_vrIK != null)
|
if(m_vrIK != null)
|
||||||
m_vrIK.solver.Reset();
|
m_vrIK.solver.Reset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue