copy method

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

Copy the properties from the source camera into this one.

Implementation

@override
Camera copy(Object3D source, [bool? recursive]) {
  super.copy(source, recursive);
  Camera source1 = source as Camera;

  matrixWorldInverse.setFrom(source1.matrixWorldInverse);
  projectionMatrix.setFrom(source1.projectionMatrix);
  projectionMatrixInverse.setFrom(source1.projectionMatrixInverse);

  return this;
}