mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 03:19:23 +00:00
Fix of moving to side on avatar change
This commit is contained in:
parent
b92d54c162
commit
c41c719d61
1 changed files with 4 additions and 4 deletions
|
@ -365,10 +365,6 @@ namespace ml_prm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// And return back
|
|
||||||
m_puppetRoot.position = m_avatarTransform.position;
|
|
||||||
m_puppetRoot.rotation = m_avatarTransform.rotation;
|
|
||||||
|
|
||||||
m_vrIK = PlayerSetup.Instance._avatar.GetComponent<VRIK>();
|
m_vrIK = PlayerSetup.Instance._avatar.GetComponent<VRIK>();
|
||||||
if(m_vrIK != null)
|
if(m_vrIK != null)
|
||||||
m_vrIK.onPostSolverUpdate.AddListener(this.OnIKPostSolverUpdate);
|
m_vrIK.onPostSolverUpdate.AddListener(this.OnIKPostSolverUpdate);
|
||||||
|
@ -394,6 +390,10 @@ namespace ml_prm
|
||||||
m_avatarReady = true;
|
m_avatarReady = true;
|
||||||
m_initTask = null;
|
m_initTask = null;
|
||||||
|
|
||||||
|
// And return back
|
||||||
|
m_puppetRoot.position = m_avatarTransform.position;
|
||||||
|
m_puppetRoot.rotation = m_avatarTransform.rotation;
|
||||||
|
|
||||||
OnMovementDragChanged(Settings.MovementDrag);
|
OnMovementDragChanged(Settings.MovementDrag);
|
||||||
OnAngularDragChanged(Settings.AngularDrag);
|
OnAngularDragChanged(Settings.AngularDrag);
|
||||||
OnGravityChanged(Settings.Gravity);
|
OnGravityChanged(Settings.Gravity);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue