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

Function demo

examples/demos/test.js:3–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1var g1, g2, b1, b2;
2
3function demo() {
4
5 cam ( 90, 20, 100 );
6
7 world = new OIMO.World({ info:true });
8
9 g1 = add({ size:[50, 10, 50], pos:[0,-5,0] });
10
11 // basic geometry body
12 b1 = add({ type:'box', size:[10,10,10], pos:[0,5,0], move:true, material:'statique' });
13 b2 = add({ type:'box', size:[1,1,1], pos:[0,5,0], move:true, material:'statique' });
14
15 // world internal loop
16 world.postLoop = postLoop;
17 world.play();
18
19};
20
21function postLoop () {
22

Callers

nothing calls this directly

Calls 2

camFunction · 0.50
addFunction · 0.50

Tested by

no test coverage detected