repo: janusweb action: commit revision: path_from: revision_from: 6a974f9505600b9fedc779326788fbde5cee81ad: path_to: revision_to:
commit 6a974f9505600b9fedc779326788fbde5cee81ad Author: James BaicoianuDate: Thu Jul 30 16:26:34 2020 -0700 Added hasChangedPosition() diff --git a/scripts/janusbase.js b/scripts/janusbase.js
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -687,6 +687,10 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
return !euler.equals(this.properties.rotation);
}
})();
+ this.hasChangedPosition = function() {
+ var changes = this.frameupdates;
+ return (changes['position'] || !this.lastframevalues.position.equals(this.properties.position));
+ }
this.resetFrameUpdates = function() {
this.frameupdates['position'] = false;
this.frameupdates['scale'] = false;
-----END OF PAGE-----