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

Function add

examples/js/main.js:103–117  ·  view source on GitHub ↗
( o, noMesh )

Source from the content-addressed store, hash-verified

101// add body to simulation and mesh on three
102
103function add( o, noMesh ){
104
105 if( world ){
106 var b = world.add( o );
107 bodys.push( b );
108 }
109
110 if( !noMesh ){
111 var m = view.add( o );
112 if( world ) b.connectMesh( m );
113 }
114
115 if( world ) return b;
116
117}
118
119
120function cam ( h,v,d,t ){ view.moveCamera( h, v, d, t || [0,0,0] ); };

Callers 15

demoFunction · 0.50
demoFunction · 0.50
demoFunction · 0.50
demoFunction · 0.50
demoFunction · 0.50
addTowerFunction · 0.50
demoFunction · 0.50
demoFunction · 0.50
demoFunction · 0.50
demoFunction · 0.50
demoFunction · 0.50
initSkeletonFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected