Giter Site home page Giter Site logo

guohong365 / ammo.js-demos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeromeetienne/ammo.js-demos

0.0 0.0 0.0 4.27 MB

Demo application base class and 3D physics demos based on ammo.js. Support for several scenegraphs including Three.js and SceneJS.

Home Page: http://schteppe.github.com/ammo.js-demos/

License: Other

JavaScript 97.89% CSS 0.14% HTML 1.97%

ammo.js-demos's Introduction

View all demos >>

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 :)

ammo.js-demos's People

Contributors

schteppe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.