mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[AlternateIKSystem] Add BTKUI support. Fixed teleporting not resetting IK.
This commit is contained in:
parent
eaccf42d1b
commit
74803a0e09
7 changed files with 165 additions and 32 deletions
|
@ -20,7 +20,7 @@ public class IKManager : MonoBehaviour
|
|||
private static LookAtIK _lookAtIk;
|
||||
public static LookAtIK lookAtIk => _lookAtIk;
|
||||
|
||||
private bool _isAvatarInitialized = false;
|
||||
private bool _isAvatarInitialized;
|
||||
|
||||
// IK Handling
|
||||
private IKHandler _ikHandler;
|
||||
|
@ -160,6 +160,15 @@ public class IKManager : MonoBehaviour
|
|||
return true;
|
||||
}
|
||||
|
||||
public bool OnPlayerTeleported()
|
||||
{
|
||||
if (!_isAvatarInitialized)
|
||||
return false;
|
||||
|
||||
_vrik?.solver.Reset();
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue