This project demonstrates the interaction between two spheres using Three.js library. One sphere can be controlled with the mouse, while the other sphere represents a static object for collision testing.
- Clone the repository:
git clone https://github.com/your-username/threejs-sphere-collision.git
- Navigate to the project directory:
cd threejs-sphere-collision
- Install dependencies:
npm install
- Open your web browser executing an local serve with any visual studio code extension
- Use the mouse to control the movement of the first sphere
- Observe the collision behavior between the two spheres
- Three.js: A JavaScript library for creating 3D graphics in the browser
- HTML5 Canvas: Used for rendering the spheres and handling user input
Contributions are welcome! If you have any ideas or improvements, please submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.