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

Add orbiting camera mode #160

Open
wants to merge 59 commits into
base: dev
Choose a base branch
from
Open

Add orbiting camera mode #160

wants to merge 59 commits into from

Conversation

jdahlstrom
Copy link
Owner

Rotates the camera around a target point.

jdahlstrom and others added 30 commits May 11, 2024 14:43
A surface-of-revolution shape generated by rotating
a polyline about an axis.
These are all surface-of-revolution objects based on Lathe.
Replace the smelly diff and scale methods with a single new method dv_dt
that handles all the use cases of the removed methods, also simplifying
calling code.
Also fix primitive and vertex output stats.
The endpoint should be the end of the last row, not one-past-the-last.
This caused a panic if the slice contained the last row of the parent.
Made slice_mut() logic identical to slice() which was already correct.
Cannot use chunks_exact(stride) because the last row has length w<=stride.
rows() was already correct.
The Index impls already do, so make the get methods consistent.
* new_default -> new
* new -> new_from
* Reduce duplicated code
* Catch more errors
* Better panic messages
Add Utah teapot and Stanford bunny models to the set of objects displayed.
Allow lower precision with micromath and fallback.
* Change VecN type aliases to always be in Real<N, B>, generic over B.
This better matches their intended semantics as specifically Cartesian
vectors. For example, SphericalVec and Vec3 are now always distinct types.

* Change vecN functions to be generic over B, matching their respective
VecN. This removes the need of most uses of .to(), at the expense of
sometimes being unable to infer B.

* Turn generic Vec4 to ProjVec4 specifically, with little need for
Cartesian 4-vectors at least for now. Remove vec4 functions as unneeded.
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.

1 participant