https://github.com/nilaysavant/bevy_mesh_drawing
Bevy Plugin to draw polygonal meshes
https://github.com/nilaysavant/bevy_mesh_drawing
bevy-engine drawing gamedev graphics mesh mesh-generation polygon
Last synced: about 1 year ago
JSON representation
Bevy Plugin to draw polygonal meshes
- Host: GitHub
- URL: https://github.com/nilaysavant/bevy_mesh_drawing
- Owner: nilaysavant
- License: apache-2.0
- Created: 2023-09-18T15:15:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T14:17:49.000Z (almost 2 years ago)
- Last Synced: 2024-08-05T16:31:11.431Z (almost 2 years ago)
- Topics: bevy-engine, drawing, gamedev, graphics, mesh, mesh-generation, polygon
- Language: Rust
- Homepage:
- Size: 2.85 MB
- Stars: 14
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE.txt
Awesome Lists containing this project
README
# Bevy Mesh Drawing
**[Experimental ⚠️]** [Bevy][Bevy Engine Website] Plugin to draw polygonal meshes.

## Quick Start
```toml
[dependencies]
bevy_mesh_drawing = { git = "https://github.com/nilaysavant/bevy_mesh_drawing", tag = "v0.5.0" }
```
```rust
/// Add canvas and camera...
fn setup(mut commands: Commands) {
commands.spawn((
Name::new("Ground Canvas"),
PbrBundle { .. },
Canvas, // Canvas Marker.
));
commands.spawn((
Name::new("Camera"),
Camera3dBundle { .. },
MeshDrawingCamera, // Camera Marker.
));
}
/// Meshes will be created with [`PolygonalMesh`]
fn handle_polygonal_mesh_add(query: Query>) {
for entity in query.iter() {
// Use the created mesh here...
}
}
```
Checkout [`simple.rs`](./examples/simple.rs) in [examples](./examples/).
## Versions
| bevy | bevy_mesh_drawing |
| ---- | ----------------- |
| 0.14 | 0.5.0 |
| 0.13 | 0.4.0 |
| 0.12 | 0.3.0 |
| 0.11 | 0.2.0 |
| 0.8 | 0.1.0 |
[Bevy Engine Website]: https://bevyengine.org/