Skip to content

feat: Added .anchor property to CameraComponent.Viewfinder#1458

Merged
spydon merged 11 commits into
flame-engine:mainfrom
st-pasha:ps/camera-anchor
Mar 18, 2022
Merged

feat: Added .anchor property to CameraComponent.Viewfinder#1458
spydon merged 11 commits into
flame-engine:mainfrom
st-pasha:ps/camera-anchor

Conversation

@st-pasha
Copy link
Copy Markdown
Contributor

Description

The .anchor property allows to designate a specific point within the viewport as being the "logical center" of the viewport -- this is the point where the viewfinder's focus will be placed at. This is similar to the relativeOffset property of the old Camera.

Also: slightly simplified the rendering logic of CameraComponent by merging the multiple rendering methods.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples.

Breaking Change

  • No, this is not a breaking change.

Related Issues

@spydon spydon merged commit d51dc5e into flame-engine:main Mar 18, 2022
@st-pasha st-pasha deleted the ps/camera-anchor branch March 18, 2022 18:20
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.

2 participants