text: /**
   * PhysicsJS v0.5.2 - 2013-11-20
   * A modular, extendable, and easy-to-use physics engine for javascript
   * http://wellcaffeinated.net/PhysicsJS
   *
   * Copyright (c) 2013 Jasper Palfree <jasper@wellcaffeinated.net>
   * Licensed MIT
   */
  (function (root, factory) {
      var deps = ['physicsjs', '../geometries/circle'];
      if (typeof exports === 'object') {
          // Node. 
          var mods = deps.map(require);
          module.exports = factory.call(root, mods[ 0 ]);
      } else if (typeof define === 'function' && define.amd) {
          // AMD. Register as an anonymous module.
          define(deps, function( p ){ return factory.call(root, p); });
      } else {
          // Browser globals (root is window). Dependency management is up to you.
          root.Physics = factory.call(root, root.Physics);
      }
  }(this, function ( Physics ) {
      'use strict';
      /**
       * Circle body definition
       * @module bodies/circle
       * @requires geometries/circle
       */
      Physics.body('circle', function( parent ){
      
          var defaults = {
              radius: 1.0
          };
      
          return {
      
              /**
               * Initialization
               * @param  {Object} options Configuration options
               * @return {void}
               */
              init: function( options ){
      
                  // call parent init method
                  parent.init.call(this, options);
      
                  options = Physics.util.extend({}, defaults, options);
      
                  this.geometry = Physics.geometry('circle', {
                      radius: options.radius
                  });
      
                  this.recalc();
              },
      
              /**
               * Recalculate properties. Call when body physical properties are changed.
               * @return {this}
               */
              recalc: function(){
                  parent.recalc.call(this);
                  // moment of inertia
                  this.moi = this.mass * this.geometry.radius * this.geometry.radius / 2;
              }
          };
      });
      
      // end module: bodies/circle.js
      return Physics;
  })); // UMD 