Skip to content

Commit ab9447a

Browse files
authored
Add example for bounding volumes and intersection tests (#11666)
# 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
1 parent 1352bf1 commit ab9447a

File tree

3 files changed

+456
-0
lines changed

3 files changed

+456
-0
lines changed

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,17 @@ description = "Shows how to create graphics that snap to the pixel grid by rende
528528
category = "2D Rendering"
529529
wasm = true
530530

531+
[[example]]
532+
name = "bounding_2d"
533+
path = "examples/2d/bounding_2d.rs"
534+
doc-scrape-examples = true
535+
536+
[package.metadata.example.bounding_2d]
537+
name = "2D Bounding Volume Intersections"
538+
description = "Showcases bounding volumes and intersection tests"
539+
category = "2D Rendering"
540+
wasm = true
541+
531542
# 3D Rendering
532543
[[example]]
533544
name = "3d_scene"

0 commit comments

Comments
 (0)