vectorToWorldFrame method

Vec3 vectorToWorldFrame(
  1. Vec3 localVector, [
  2. Vec3? result
])

Convert a local body point to world frame.

Implementation

Vec3 vectorToWorldFrame(Vec3 localVector, [Vec3? result]){
  result ??= Vec3();
  quaternion.vmult(localVector, result);
  return result;
}