add basic model loading
This commit is contained in:
parent
77eae604c7
commit
c8b4dda031
5 changed files with 419 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue