copyWithPose method

Camera copyWithPose({
  1. required Vector3 position,
  2. required Matrix3 rotation,
})

Returns a new camera with updated position and rotation.

Implementation

Camera copyWithPose({
  required Vector3 position,
  required Matrix3 rotation,
}) {
  return copyWith(position: position, rotation: rotation);
}