Convert a world vector to local body frame
Vec3 vectorToLocalFrame(Vec3 worldVector,[Vec3? result]){ result ??= Vec3(); quaternion.conjugate().vmult(worldVector, result); return result; }