Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schteppe/ammo.js-demos
Demo application base class and 3D physics demos based on ammo.js. Support for several scenegraphs including Three.js and SceneJS.
https://github.com/schteppe/ammo.js-demos
Last synced: about 2 months ago
JSON representation
Demo application base class and 3D physics demos based on ammo.js. Support for several scenegraphs including Three.js and SceneJS.
- Host: GitHub
- URL: https://github.com/schteppe/ammo.js-demos
- Owner: schteppe
- License: other
- Created: 2011-10-03T11:07:29.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-08-31T16:33:25.000Z (over 9 years ago)
- Last Synced: 2024-08-09T14:07:23.533Z (5 months ago)
- Language: JavaScript
- Homepage: http://schteppe.github.com/ammo.js-demos/
- Size: 4.28 MB
- Stars: 115
- Watchers: 16
- Forks: 28
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
This project aims to produce easy-to-use demo classes, that can be used to view physics simulations in ammo.js in any WebGL scenegraph.
There are two main classes in the framework. The first one is the _DemoApplication_ that is supposed to be extended by the user. The DemoApplication base class contains functions for mouse picking and creating rigid bodies.
The second class is _ShapeViewer_ and it is also supposed to be extended. ShapeViewer provides a simple interface toward a WebGL scenegraph and can through this interface be used by the DemoApplication.
## Code structure
* **src/** Contains code for the demo framework, which makes ammo.js collaborate with a WebGL scenegraph.
* **demos/** The actual demos in their own subfolders.
* **other/** External libs such as ammo.js, jquery, scenegraph libs## Howto: Add a new Demo
1. Create a folder with a unique name in _demos/_, eg. _demos/MyDemo/_.
2. Copy .js and .html files from _demos/TemplateDemo/_ into your new folder.
3. Start coding.## Updating gh-pages
The site (gh-pages) is updated by merging the master branch into the gh-pages branch now and then. Eg.git checkout gh-pages; git merge master
## Todo
* Make ShapeDrawer subclasses support more shapes
* More demos :)