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

Function demo

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

camFunction · 0.50

Tested by

no test coverage detected