MCPcopy
hub / github.com/lo-th/Oimo.js / demo

Function demo

examples/docs/rigidbody.js:3–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1var box, mbox;
2
3function demo() {
4
5 cam ( 0, 20, 40 );
6
7 world = new OIMO.World();
8 world.add({ size:[50, 10, 50], pos:[0,-5,0] }); // ground
9
10 var options = {
11 type:'box',
12 size:[10, 10, 10],
13 pos:[0,20,0],
14 density:1,
15 move:true
16 }
17
18 box = world.add( options );
19 mbox = view.add( options ); // three mesh
20
21};
22
23function update () {
24

Callers

nothing calls this directly

Calls 1

camFunction · 0.50

Tested by

no test coverage detected