Bone.js 540 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Object3D } from '../core/Object3D';
  2. /**
  3. * @author mikael emtinger / http://gomo.se/
  4. * @author alteredq / http://alteredqualia.com/
  5. * @author ikerr / http://verold.com
  6. */
  7. function Bone( skin ) {
  8. Object3D.call( this );
  9. this.type = 'Bone';
  10. this.skin = skin;
  11. }
  12. Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
  13. constructor: Bone,
  14. isBone: true,
  15. copy: function ( source ) {
  16. Object3D.prototype.copy.call( this, source );
  17. this.skin = source.skin;
  18. return this;
  19. }
  20. } );
  21. export { Bone };
粤ICP备19079148号