Browse Source

Setting speed and order of calculations to be consistent between language versions

Ken Paulson 8 years ago
parent
commit
99fb56ea0b

+ 1 - 1
Data/AtomicEditor/ProjectTemplates/Project2D/JavaScript/Resources/Components/Spinner.js

@@ -10,7 +10,7 @@ exports.component = function(self) {
 	//timeStep: time since last call to update in seconds
     self.update = function(timeStep) {
         //roll a node
-        self.node.roll(timeStep * 100);
+        self.node.roll(self.speed * timeStep * 75);
 
     }