Skip to content

Commit

Permalink
Bugfix: FramingTransposer with a dead zone would sometimes drift
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed Dec 19, 2024
1 parent 5b2d575 commit 323516c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions com.unity.cinemachine/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Bugfixes
- CameraDeactivated events were not sent consistently when a blend interrupted another blend before completion.
- CameraActivated events were not sent consistently when activation was due to timeline blends.
- Bugfix: FramingTransposer with a dead zone would sometimes drift.


## [3.1.2] - 2024-10-01
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public override void MutateCameraState(ref CameraState curState, float deltaTime
realTargetPos - cameraOffset, hardGuideOrtho);
}
}
curState.RawPosition = localToWorld * (cameraPos + cameraOffset);
curState.RawPosition = camPosWorld + localToWorld * cameraOffset;
m_PreviousCameraPosition = curState.RawPosition;

m_InheritingPosition = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ public override void MutateCameraState(ref CameraState curState, float deltaTime
realTargetPos - cameraOffset, hardGuideOrtho);
}
}
curState.RawPosition = localToWorld * (cameraPos + cameraOffset);
curState.RawPosition = camPosWorld + localToWorld * cameraOffset;
m_PreviousCameraPosition = curState.RawPosition;

// Adjust lens for group framing
Expand Down

0 comments on commit 323516c

Please sign in to comment.