Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMCL-0000: Add some missing offsets #912

Closed
wants to merge 3 commits into from
Closed

Conversation

glabute
Copy link
Collaborator

@glabute glabute commented Nov 24, 2023

Purpose of this PR

HardLookAtTarget was missing a target offset - it always looked at target's root.
GroupFraming was missing a CenterOffset - it always centered the group on the screen.

Added these missing items.

@codecov-commenter
Copy link

Codecov Report

Attention: 66 lines in your changes are missing coverage. Please review.

Comparison is base (e7ec0e4) 20.98% compared to head (7651fe7) 20.96%.

Files Patch % Lines
...hine/Editor/Editors/CinemachineHardLookAtEditor.cs 0.00% 39 Missing ⚠️
...hine/Runtime/Behaviours/CinemachineGroupFraming.cs 0.00% 23 Missing ⚠️
...achine/Runtime/Components/CinemachineHardLookAt.cs 50.00% 3 Missing ⚠️
...ne/Editor/Editors/CinemachineGroupFramingEditor.cs 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #912      +/-   ##
==========================================
- Coverage   20.98%   20.96%   -0.03%     
==========================================
  Files         245      245              
  Lines       27527    27589      +62     
==========================================
+ Hits         5777     5784       +7     
- Misses      21750    21805      +55     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glabute glabute changed the title CMCL-0000:add some missing offsets CMCL-0000: Add some missing offsets Nov 24, 2023
@AntoineCharton
Copy link
Contributor

AntoineCharton commented Nov 27, 2023

Nov-27-2023 14-06-46
Why isn't it offsetting in this configuration?
[Edit] nvm it's looking at the X axis.

@@ -13,10 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Added CinemachineVirtualCameraBase.CancelDamping() convenience method to snap camera to its target position.
- Added CinemachineOrbitalFollow.TargetOffset to reposition orbit center.
- SaveDuringPlay supports multi-scene editing.
- Added CinemachineGroupFraming.CenterOffset to reposition group ceneter on the screen.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added CinemachineGroupFraming.CenterOffset to reposition group center on the screen.

Copy link
Contributor

@AntoineCharton AntoineCharton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just check the typo but the features works has expected.

@glabute glabute closed this Nov 27, 2023
@glabute
Copy link
Collaborator Author

glabute commented Nov 27, 2023

merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants