dvdjrnx / 3d-physics

A chaotic 3D scene implementing physics using Three.js and React Three Fiber.

Home Page:https://dvdjrnx.github.io/3d-physics/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3D Physics

Multiple peach cubes, a hamburger, and a yellow ball fall to a green floor with a spinning red rectangular block.

This project explores applying physics to a 3D scene created with Three.js and React Three Fiber. At its core, it features a spinning, rectangular block. Numerous models fall into the scene under the effects of gravity and are bounced around by the block, reacting as would be reasonably expected in the real world for their individual shapes.

The project also displays a performance monitor for profiling different performance indicators, such as FPS, memory usage, and GPU load.

The work was undertaken as one of many steps in acquiring my Three.js certification through Three.js Journey.

Live demo

A running demo of the project can be viewed at https://dvdjrnx.github.io/3d-physics

Local development

Installation

  1. Clone the repository.
  2. Install the required dependencies by running npm install.

Usage

To start the project, run the following command:

npm run dev

About

A chaotic 3D scene implementing physics using Three.js and React Three Fiber.

https://dvdjrnx.github.io/3d-physics/


Languages

Language:JavaScript 87.4%Language:HTML 10.8%Language:CSS 1.8%