setTransformationMatrices method

void setTransformationMatrices([
  1. Matrix4? camera,
  2. Matrix4? gizmos
])
  • Set values in transformation object
  • camera Transformation to be applied to the camera
  • gizmos Transformation to be applied to gizmos

Implementation

void setTransformationMatrices([Matrix4? camera, Matrix4? gizmos]) {
    if (camera != null) {
      if (_transformation['camera'] != null) {
        _transformation['camera']!.setFrom(camera);
      }
      else {
        _transformation['camera'] = camera.clone();
      }
    }
    else {
      _transformation.remove('camera');
    }

    if (gizmos != null) {
      if (_transformation['gizmos'] != null) {
        _transformation['gizmos']!.setFrom(gizmos);
      }
      else {
        _transformation['gizmos'] = gizmos.clone();
      }
    }
    else {
      _transformation.remove('gizmos');
    }
  }