this.onUpdate
rickierich

is onMoveComplete called, when the sceneobject is removed, from the scene.

All 2 Comments
rickierich

does this.update = 0; mean that you cannot use this.update again. I set this.update = 0; Then I refill it with a function in the addtoscene function on an object. It stops calling this.update after that.

rickierich

I seem to have sorted my problem out, but it appears that the this.onUpdate = 0 stops the object from listening when called in the this.onUpdate function but it is switched back on in the onMoveComplete function when you reset the onUpdate to a function. The same function does not happen in the addToScene function and you have to explicitly tell it to Listen. 

Post a reply
Add Attachment
Submit Reply
Login to Reply