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

Example bounding sphere using macroquad #259

Merged
merged 29 commits into from
Sep 20, 2024

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Sep 4, 2024

Screencast.from.09-04-2024.10.50.47.AM.webm
Screencast.from.09-04-2024.02.55.32.PM.webm

@Vrixyz Vrixyz requested a review from sebcrozet September 6, 2024 14:31
Copy link
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

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

Thanks! I mostly just looked at the bounding_sphere files, as I assume the other changes originate from the PRs this depends on.

let cube2 = Cuboid::new(Vector3::new(0.5, 1.0, 0.5));

let cube1_pos = na_from_mquad(lissajous_3d(elapsed_time)) * 4f32;
let cube1_pos = Isometry3::translation(cube1_pos.x, cube1_pos.y, cube1_pos.z);
Copy link
Member

Choose a reason for hiding this comment

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

Does this work?

Suggested change
let cube1_pos = Isometry3::translation(cube1_pos.x, cube1_pos.y, cube1_pos.z);
let cube1_pos = Isometry3::from(cube1_pos);

Copy link
Member

Choose a reason for hiding this comment

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

It would be great to have comments for every function from this module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll open a new PR for that

@Vrixyz Vrixyz force-pushed the example_bounding_sphere branch from f3447e1 to b68ed9d Compare September 20, 2024 13:03
@Vrixyz Vrixyz merged commit e09f966 into dimforge:master Sep 20, 2024
7 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