Skip to content

Add support for camera look at#530

Merged
tracygardner merged 2 commits intorelease1from
main
Apr 13, 2026
Merged

Add support for camera look at#530
tracygardner merged 2 commits intorelease1from
main

Conversation

@tracygardner
Copy link
Copy Markdown
Contributor

No description provided.

claude and others added 2 commits April 13, 2026 15:23
For ArcRotateCamera, getAbsolutePosition() returns the camera's world
position (orbit centre + orbital offset), not the orbit centre itself.
Using that Y value as the new setTarget() height displaced the orbit
centre upward by the full orbital offset, making the camera tilt down
instead of staying level.

Fix: use mesh1.target?.y (the actual orbit-centre Y for ArcRotateCamera,
and the current look-at Y for FreeCamera) so that only the X/Z of the
orbit centre changes, giving a pure horizontal yaw with no pitch change.

https://claude.ai/code/session_012ASzHmpUWv39A2j5hiFzyc
…xis-jlM0I

Fix camera target Y position fallback in flock transform
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 13, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7a86f121-ddd0-4628-9cfb-ecabc208a21b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch main

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tracygardner tracygardner merged commit 94c7657 into release1 Apr 13, 2026
11 checks passed
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