👉 Check out the Live Demo
This is a simple starter example using Koota with BatchedMesh
.
Koota is a brand new ecs library by pmndrs. Designed for highly dynamic realtime apps (i.e. games). While the library is mostly finished, expect some small changes to happen. This example shows how to create a world, a basic systems schedule, spawn entities with Traits (ecs components) and connecting the simulation back to r3f/three. This time using the mostly imperative BatchedMesh api.
Take a look at ecs/index.ts to see how we create a world and a schedule.
Inside ecs/traits.ts you'll see some example traits and
ecs/systems.ts will demonstrate some example systems.