private void LateUpdate() { if (ForestVR.Enabled) { if (VRPlayerControl.canUpdateMovement()) { this.UpdatePlayerAngleVr(); this.RoomScaleCameraAlign(); this.updateSpineRotation(); } this.canSolveIk = !LocalPlayer.vrPlayerControl.useGhostMode; if (this.canSolveIk) { for (int i = 0; i < this.coopSync.shoulders.Length; i++) { } for (int j = 0; j < this.coopSync.elbows.Length; j++) { } for (int k = 0; k < this.ikSolve.Length; k++) { this.ikSolve[k].Solve(); } } } }
private void Update() { if (ForestVR.Enabled) { if (VRPlayerControl.canUpdateMovement()) { this.UpdateFlick(); this.UpdateCrouchHeight(); } this.updateCameraCentre(); this.updateWeaponVis(); this.UpdateHandAttachments(); this.UpdateWeaponHandedness(); this.UpdateIconCameraVisibility(); } }