CoffeeSpinner.js 860 B

12345678910111213141516171819202122232425262728
  1. (function() {
  2. 'atomic component';
  3. var CoffeeSpinner, inspectorFields,
  4. __hasProp = {}.hasOwnProperty,
  5. __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
  6. inspectorFields = {
  7. speed: 1.0
  8. };
  9. CoffeeSpinner = (function(_super) {
  10. __extends(CoffeeSpinner, _super);
  11. function CoffeeSpinner() {
  12. return CoffeeSpinner.__super__.constructor.apply(this, arguments);
  13. }
  14. CoffeeSpinner.prototype.update = function(timeStep) {
  15. return this.node.yaw(timeStep * 75 * this.speed);
  16. };
  17. return CoffeeSpinner;
  18. })(Atomic.JSComponent);
  19. module.exports = CoffeeSpinner;
  20. }).call(this);