readHalfHeight method

Vector3 readHalfHeight([
  1. Vector3? out
])

The half-height vector, local +Y scaled by half of height.

Implementation

Vector3 readHalfHeight([Vector3? out]) {
  final result = out ?? Vector3.zero();
  final m = worldMatrix.storage;
  result.setValues(m[4], m[5], m[6]);
  if (result.length2 > 0.0) result.normalize();
  return result..scale(height * 0.5);
}