Skip to content

Commit

Permalink
Fix inspection reset
Browse files Browse the repository at this point in the history
  • Loading branch information
BDeshiDev committed Aug 1, 2024
1 parent 66b27ac commit 395ac79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void HandleInspectResetPerformed()
if (_isInspecting && _examinationObject != null)
{
_examinationObject.localPosition = _curInspectable.InspectionPosOffset;
_examinationObject.localRotation = _curInspectable.InspectionRotOffset;
_examinationObject.localRotation = Quaternion.Euler(_curInspectable.InspectionRotOffset);
}
}

Expand Down Expand Up @@ -272,7 +272,7 @@ private void UpdateDrag(InspectableBase inspectableBase, Transform spawnedExamin

spawnedExaminationObject.RotateAround(spawnedExaminationObject.position, _inspectionCamera.transform.up, rotationAmountX);
spawnedExaminationObject.RotateAround(spawnedExaminationObject.position, _inspectionCamera.transform.right, rotationAmountY);
// spawnedExaminationObject.localPosition = Vector3.zero;
spawnedExaminationObject.localPosition = Vector3.zero;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.studio23.ss2.interactionsystem",
"version": "1.5.14",
"version": "1.5.15",
"displayName": "Interaction System",
"description": "An interaction system that supports: Toggleable, Pickups, Inspectable etc. types of interactions",
"unity": "2022.3",
Expand Down

0 comments on commit 395ac79

Please sign in to comment.