Browse Source

JS version of Basic2D uses the same speed as the C# one. Different values might make one wonder if there's a reason for the difference, which I don't believe is the case here.

Ken Paulson 8 years ago
parent
commit
6ece07df31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Basic2D/JavaScript/Resources/Components/Spinner.js

+ 1 - 1
Basic2D/JavaScript/Resources/Components/Spinner.js

@@ -9,7 +9,7 @@ exports.component = function(self) {
     //update function calls each frame
     //update function calls each frame
     self.update = function(timeStep) {
     self.update = function(timeStep) {
         //roll a node
         //roll a node
-        self.node.roll(timeStep * 100 * self.speed);
+        self.node.roll(self.speed * timeStep * 75.0);
     };
     };
 
 
 };
 };