-
Notifications
You must be signed in to change notification settings - Fork 1
[WIP] Add rotation moves + make a new folder for path changes #14
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14 +/- ##
==========================================
- Coverage 65.00% 56.25% -8.75%
==========================================
Files 5 9 +4
Lines 180 208 +28
==========================================
Hits 117 117
- Misses 63 91 +28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I started using this package. Is really convenient, great. However, the functions defined in this PR are definitely something I'm kinda doing in a more cumbersome way 😄 . How can I help to make this go into master ? |
More use cases would be nice, I wrote these path changes for myself but not 100% sure how people are using them / if there is a more general strategy! |
This is still pretty hacky, but it works. The idea is that you can slerp every aspect of the view state, and you can also center it about some point so that you can rotate about that point. This is not meant to be necessarily immediately user-usable, but rather a more foundational move for e.g. orbiting around a point or rotating a camera. You can use e.g. Rotations.AngleAxis to set the final point and then this will go there but on the surface of a sphere parameterized by the original and final points, and the center point.
This PR moves each path change into its own file for simplicity / searchability. It will also add three new moves:
RotateCamera(duration, axis, angle)
- rotate the camera aroundaxis
OrbitCamera(duration, axis, angle)
- similar toRotateCamera
in implementation, but rotates the camera around itslookat
while keeping thatlookat
constant.CompoundMove
: apply multiple moves simultaneously, so you can e.g. rotate the camera while translating. Moves are applied in order.