copy method

  1. @override
Sprite copy(
  1. Object3D source, [
  2. bool? recursive
])
override

Implementation

@override
Sprite copy(Object3D source, [bool? recursive]) {
  super.copy(source);

  if (source is Sprite) {
    center.copy(source.center);
    material = source.material;
  }
  return this;
}