mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Add more debug to fuseCollider and spinner
This commit is contained in:
parent
e9099b77a5
commit
d9e6491843
2 changed files with 6 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
Entities.callEntityMethod(fuseID, "light");
|
Entities.callEntityMethod(fuseID, "light");
|
||||||
},
|
},
|
||||||
preload: function(entityID) {
|
preload: function(entityID) {
|
||||||
|
print("fuseCollider.js | preload");
|
||||||
this.entityID = entityID;
|
this.entityID = entityID;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
}
|
}
|
||||||
Spinner.prototype = {
|
Spinner.prototype = {
|
||||||
onLit: function() {
|
onLit: function() {
|
||||||
debug("LIT SPINNER", this.entityID);
|
debug("spinner.js | Spinner lit");
|
||||||
Entities.editEntity(this.entityID, {
|
Entities.editEntity(this.entityID, {
|
||||||
"angularDamping": 0.1,
|
"angularDamping": 0.1,
|
||||||
"angularVelocity": {
|
"angularVelocity": {
|
||||||
|
@ -50,6 +50,7 @@
|
||||||
for (var childEntityID in childrenProps) {
|
for (var childEntityID in childrenProps) {
|
||||||
var props = childrenProps[childEntityID];
|
var props = childrenProps[childEntityID];
|
||||||
if (props.type == "ParticleEffect") {
|
if (props.type == "ParticleEffect") {
|
||||||
|
debug("spinner.js | Modifying: ", childEntityID);
|
||||||
Entities.editEntity(childEntityID, {
|
Entities.editEntity(childEntityID, {
|
||||||
emitRate: 35,
|
emitRate: 35,
|
||||||
});
|
});
|
||||||
|
@ -59,13 +60,14 @@
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
debug("BLOW UP");
|
debug("spinner.js | Finishing spinner");
|
||||||
injector.stop();
|
injector.stop();
|
||||||
|
|
||||||
var childrenProps = getChildProperties(self.entityID, ['type']);
|
var childrenProps = getChildProperties(self.entityID, ['type']);
|
||||||
for (var childEntityID in childrenProps) {
|
for (var childEntityID in childrenProps) {
|
||||||
var props = childrenProps[childEntityID];
|
var props = childrenProps[childEntityID];
|
||||||
if (props.type == "ParticleEffect") {
|
if (props.type == "ParticleEffect") {
|
||||||
|
debug("spinner.js | Modifying: ", childEntityID);
|
||||||
Entities.editEntity(childEntityID, {
|
Entities.editEntity(childEntityID, {
|
||||||
emitRate: 0,
|
emitRate: 0,
|
||||||
});
|
});
|
||||||
|
@ -74,6 +76,7 @@
|
||||||
}, 4900);
|
}, 4900);
|
||||||
},
|
},
|
||||||
preload: function(entityID) {
|
preload: function(entityID) {
|
||||||
|
debug("spinner.js | Preload");
|
||||||
this.entityID = entityID;
|
this.entityID = entityID;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue