Matter-Bricks is a React project that utilizes Matter.js, a popular 2D rigid body physics engine for the web. This project is aimed at creating a 3D simulation of falling bricks and more. It serves as an excellent demonstration and practical application of physics in web development, game design, and how to incorporate physics and animation into a React-based application.
- Simulation of falling bricks in a 3D environment
- Realistic physics applied to the bricks such as gravity, friction, and inertia
- Ability to interact with the simulation by adding more bricks, removing bricks, altering the gravity
- A re-playable simulation
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js installed on your system
- Npm (Node Package Manager) which usually comes with Node.js
- Clone this repository by running the following command in your terminal:
git clone https://github.com/<username>/matter-bricks.git
- Navigate into the cloned project's directory:
cd matter-bricks
- Install the project dependencies by running:
npm install
- Start the React development server:
npm start
The project should be up and running on your local machine. Open a web browser and visit http://localhost:3000
to start interacting with the application.
Any contributions are greatly appreciated.
For any major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.
This project is licensed under the MIT License. For more information see the LICENSE
file in the project root.