Bone.js 517 B

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