Skip to content

Commit f04f369

Browse files
committed
Added the softbody sim to its own page
1 parent bc3351d commit f04f369

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/pages/simulation.astro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
const { id = "bevy-canvas", loaderSrc = "/bevy/loader.mjs" } = Astro.props;
3+
import BaseLayout from "@/layouts/BaseLayout.astro";
4+
---
5+
6+
<BaseLayout>
7+
<div class="my-8 flex h-full w-full flex-col items-center justify-center">
8+
<canvas id={id}></canvas>
9+
</div>
10+
</BaseLayout>
11+
12+
<!-- Load the loader script from /public (OK to reference via src) -->
13+
<script type="module" src={loaderSrc}></script>

0 commit comments

Comments
 (0)