copy method

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

Implementation

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

  Light source1 = source as Light;

  color!.copy(source1.color!);
  intensity = source1.intensity;

  return this;
}