Skip to content

Commit

Permalink
Add example for bounding volumes and intersection tests (bevyengine#1…
Browse files Browse the repository at this point in the history
…1666)

# Objective

- Create an example for bounding volumes and intersection tests

## Solution

- Add an example with a few bounding volumes, created from primitives
- Allow the user to cycle trough the different intersection tests
  • Loading branch information
NiseVoid authored and tjamaan committed Feb 6, 2024
1 parent 87ca79a commit 0aa0093
Show file tree
Hide file tree
Showing 3 changed files with 456 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,17 @@ description = "Shows how to create graphics that snap to the pixel grid by rende
category = "2D Rendering"
wasm = true

[[example]]
name = "bounding_2d"
path = "examples/2d/bounding_2d.rs"
doc-scrape-examples = true

[package.metadata.example.bounding_2d]
name = "2D Bounding Volume Intersections"
description = "Showcases bounding volumes and intersection tests"
category = "2D Rendering"
wasm = true

# 3D Rendering
[[example]]
name = "3d_scene"
Expand Down
Loading

0 comments on commit 0aa0093

Please sign in to comment.