/three-react-cannon-examples

Demonstration of Three-to-Cannon with Three-React-Fiber

Primary LanguageJavaScript

Instructions:

View the various feature branches to see source code of the various examples, linked below: https://github.com/LiamOsler/three-react-cannon-examples/branches

Demonstrations completed to date:

  • Setup:
    • Loading models using .gtlf files
    • Instancing objects in a scene
    • Lighting effects and fogs
  • Physics:
    • Cubes
    • Other primitives
    • Convex Hull Shapes
    • Trimesh

Loading Models:

GLTF Loader:

Git Repo: https://github.com/LiamOsler/three-react-cannon-examples/tree/GLTFLoader

Live Demo: https://liamosler.ca/demos/threejs/GLTFLoader/

Instancing objects in a GLTF file:

Git Repo: https://github.com/LiamOsler/three-react-cannon-examples/tree/GLTFInstancing

Physics:

Three-Cannon:

Cubes:

Git Repo: https://github.com/LiamOsler/three-react-cannon-examples/tree/cubes

Live Demo: https://liamosler.ca/demos/threejs/boxes-cannon/

Trimesh collisions:

Git Repo: https://github.com/LiamOsler/three-react-cannon-examples/tree/trimesh

Live Demo: https://liamosler.ca/demos/threejs/trimesh-cannon/

React App installation instructions:

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.