copyForwardTo method

void copyForwardTo(
  1. Vector3 out
)

Allocation-free direction copies for per-frame consumers.

Implementation

void copyForwardTo(Vector3 out) {
  out.setValues(0, 0, -1);
  _rotation.rotate(out);
}