• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    JavaScript
  • License
    Other
  • Created about 13 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

cannon.js

A lightweight 3D physics engine written in JavaScript.
JavaScript
4,698
star
2

p2.js

JavaScript 2D physics library
JavaScript
2,641
star
3

poly-decomp.js

Decompose 2D polygons into convex pieces.
JavaScript
432
star
4

gpu-physics.js

GPGPU physics for Three.js
JavaScript
288
star
5

imgui-wasm

imgui/wasm boilerplate
C++
42
star
6

cartridge.js

HTML5 retro game engine
JavaScript
39
star
7

codegif

Use Canvas API to make a gif animation
JavaScript
38
star
8

motionblur

WebGL shader effect
JavaScript
34
star
9

remote-physics

A node.js app that runs a physics engine and lets clients download physics data in real time.
JavaScript
24
star
10

vehicle-editor

A goofy vehicle editor made using Cannon.js physics and Goo Create.
JavaScript
20
star
11

occlusion-culling.js

Occlusion culling tests using three.js
JavaScript
20
star
12

floatcompress.js

Simple library for doing lossy compress of floats. Can be used to pack floats into a typed array when high precision is not needed.
JavaScript
16
star
13

goo-cannon-softbody

Experimenting with soft body simulation using Cannon.js in Goo Create
JavaScript
16
star
14

physicstoy

2D physics editor
JavaScript
12
star
15

sweep-and-prune

2D collision detection for AABBs
HTML
12
star
16

voronoi-cube

Exploding cube in WebGL/GooEngine using 3D Voronoi tessellation data. (Goofy Day project)
JavaScript
12
star
17

doc.js

Web based on-the-fly documentation generator targeted for JavaScript.
JavaScript
11
star
18

gpu-springs

GPU accelerated spring simulation
JavaScript
9
star
19

smart-signal-routing

Orthogonal connector routing for use in interactive diagram editors
JavaScript
8
star
20

m.js

JavaScript matrix math library that uses typed arrays.
JavaScript
7
star
21

velvet-drop

GPU cloth simulation (a.k.a Velvet Drop) made in Goo Create
JavaScript
6
star
22

tinygoon

8-bit style WebGL multiplayer game using the GamePad API
JavaScript
5
star
23

dansa

Dance game for the web
JavaScript
5
star
24

CreateForge

Visual shader editor for Goo Engine
HTML
5
star
25

taptruck

Mobile 2D WebGL game. Drive the truck to the goal without tipping over.
JavaScript
5
star
26

jox

Source code documentation generator for JavaScript
JavaScript
5
star
27

hyper-cube

Spinning Cube made with Goo Create
JavaScript
4
star
28

goo-p2-platformer

Simple physics based platformer scene built using Goo Create and engine.
JavaScript
4
star
29

refract

2D WebGL puzzle game. Guide the laser beam to the goal.
JavaScript
4
star
30

goo-bunnymark

Tribute to Pixi.js bunnymark. This time in 3D, made with Goo Engine.
HTML
3
star
31

multibody-xml

An XML markup language for descibing a physical multibody system.
3
star
32

bomb-sorting-game

Sort the boxes into their containers!
JavaScript
3
star
33

fuffrboxing

3D WebGL mobile game made for Fuffr
JavaScript
2
star
34

schteppe.github.com

2
star
35

node-mysql-querycache

Query caching to relax your MySQL database. Layer on top of node-mysql.
JavaScript
1
star
36

wasm_test

WebAssembly
1
star
37

goon-yoga

Yoga for the Goon. Built with Goo Engine.
JavaScript
1
star
38

fb-node-issues

Public Issue tracker
1
star
39

ragdoll-goon

Almost-working goofy project. Need to be fixed!
JavaScript
1
star