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

feat(primitives): New torus primitive #376

Merged
2 commits merged into from
May 10, 2023
Merged

Conversation

mebyz
Copy link
Contributor

@mebyz mebyz commented May 9, 2023

Primitives : Torus !

  • adds a new torus concept, along with the internal classe TorusMesh along with the specific torus components such as torus_inner_radius, etc

  • adds Torus accessibility to the client

  • also adds a torus entity in the guest/rust/examples/basics/primitives demo project

ambient_torus

@philpax philpax requested a review from a user May 9, 2023 07:29
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! I left some comments that you might want to double check.

Also, do you mind running golden image tests and update the corresponding golden image under primitives example? Instructions: https://github.com/AmbientRun/Ambient/blob/main/docs/src/community/contributing.md#golden-image-tests

shared_crates/schema/src/schema/primitives.toml Outdated Show resolved Hide resolved
shared_crates/schema/src/schema/primitives.toml Outdated Show resolved Hide resolved
shared_crates/schema/src/schema/primitives.toml Outdated Show resolved Hide resolved
shared_crates/schema/src/schema/primitives.toml Outdated Show resolved Hide resolved
shared_crates/schema/src/schema/primitives.toml Outdated Show resolved Hide resolved
shared_crates/schema/src/schema/primitives.toml Outdated Show resolved Hide resolved
crates/primitives/src/lib.rs Show resolved Hide resolved
crates/primitives/src/lib.rs Outdated Show resolved Hide resolved
crates/meshes/src/torus.rs Outdated Show resolved Hide resolved
crates/primitives/src/lib.rs Outdated Show resolved Hide resolved
@mebyz mebyz requested a review from a user May 10, 2023 07:55
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks. Looks good to me! 👍

@ghost ghost merged commit ebb6da6 into AmbientRun:main May 10, 2023
This pull request was closed.
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