pointToLocalFrame method
Convert a world point to local body frame.
Implementation
Vec3 pointToLocalFrame(Vec3 worldPoint,Vec3? result){
result ??= Vec3();
worldPoint.vsub(position, result);
quaternion.conjugate().vmult(result, result);
return result;
}