We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581a0eb commit 892e2eeCopy full SHA for 892e2ee
vrarmik/Rig.js
@@ -12,6 +12,8 @@ const poses = {
12
13
class Rig {
14
constructor(model) {
15
+ GameObject.clearAll();
16
+
17
model.updateMatrixWorld(true);
18
let skeleton;
19
model.traverse(o => {
vrarmik/Unity.js
@@ -358,6 +358,9 @@ class GameObject {
358
AddChild(child) {
359
this.transform.AddChild(child.transform);
360
}
361
+ static clearAll() {
362
+ gameObjects.length = 0;
363
+ }
364
static startAll() {
365
for (let i = 0; i < gameObjects.length; i++) {
366
gameObjects[i].components.forEach(value => {
0 commit comments