()
| 68 | }; |
| 69 | |
| 70 | function postLoop () { |
| 71 | |
| 72 | //world.step(); |
| 73 | |
| 74 | var m; |
| 75 | |
| 76 | bodys.forEach( function ( b, id ) { |
| 77 | |
| 78 | if( b.type === 1 ){ |
| 79 | |
| 80 | m = b.mesh; |
| 81 | |
| 82 | if( b.sleeping ) switchMat( m, 'sleep' ); |
| 83 | else switchMat( m, 'move' ); |
| 84 | |
| 85 | if( m.position.y < -10 ){ |
| 86 | b.resetPosition( rand(-5,5), 30, rand(-5,5) ); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | }); |
| 91 | |
| 92 | editor.tell( world.getInfo() ); |
| 93 | |
| 94 | } |
nothing calls this directly
no test coverage detected