A Sailboat physics simulation made in three.js and Ape.ecs using a reusable abstracted approach!
- physics simulation from scratch no physics engine in use
- Rigid Body physics that works with any 3D triangulated mesh
- ECS approach, (e.g :entities can have a rigid body component)
- Voxelization based Buoyancy simulation
- Sum Of Sines water approximation using a vertex shader
- Sail Boat physics inc. lift & drag forces, buoyancy...
- Day and Night weather conditions
first check if you have npm and install dependencies:
npm --version
npm installthe project can be built with the command:
npm run buildor run a development server using:
npm run devYou can also Check out the live demo from here:
🔥 Live Demo 🔥
currently the project is missing some features:
- controls gui (currently actions are done using a lot of confusing keys)
- water reflections
- better way to handle drag




