updateMatrixWorld method

  1. @override
void updateMatrixWorld([
  1. bool force = false
])
override

This overrides the method in the base Object3D class so that it also updates the wireframe box to the extent of the box property.

Implementation

@override
void updateMatrixWorld([bool force = false]) {
  final box = this.box!;
  if (box.isEmpty()) return;
  box.getCenter(position);
  box.getSize(scale);
  scale.scale(0.5);
  super.updateMatrixWorld(force);
}