add basic model loading

This commit is contained in:
Stewart Allen 2021-12-29 17:20:17 -05:00
commit c8b4dda031
5 changed files with 419 additions and 5 deletions

View file

@ -85,7 +85,8 @@ broker.subscribe('space_init', data => {
// add object loader
broker.subscribe('space_load', data => {
for (let od of data) {
new mesh.object(od);
let obj = new mesh.object(od);
moto.Space.world.add(obj.mesh);
}
});