add model groups, async font load, array addOnce

This commit is contained in:
Stewart Allen 2021-12-29 23:52:48 -05:00
commit 5506567ecf
8 changed files with 54 additions and 28 deletions

View file

@ -142,6 +142,10 @@
timers[key] = setTimeout(fn, time);
}
WORLD.contains = (obj) => {
return WORLD.children.contains(obj);
};
/** ******************************************************************
* TWEENing Functions
******************************************************************* */
@ -954,19 +958,6 @@
active: updateLastAction
},
// wraps WORLD add/remove with immediate refresh
model: {
add: mesh => {
WORLD.add(mesh);
refresh();
},
remove: (mesh) => {
WORLD.remove(mesh);
refresh();
}
},
world: WORLD,
platform: {