Home Reference Source Test

src/component/Physics.js

  1. import Component from './Component';
  2.  
  3. /**
  4. * A Physics Component can be added to any GameObject and will give it
  5. * physical properties which can be toggled and adjusted.
  6. *
  7. * This Component should have nothing to do with collisions. Instead, Physics
  8. * should provide pre and post reactions to collisions, gravity, frictions,
  9. * and anything else that should respond to an effect or change.
  10. *
  11. * This is intended to be a base class for more specific physics handling
  12. * depending on the application.
  13. */
  14. export default class Physics extends Component {
  15. }