Vector3f worldOffset = gun.getWorldRotation().mult(localMuzzleOffset);
Edit: and perhaps useful, the 3D math tutorial: Keynote
Vector3f worldOffset = gun.getWorldRotation().mult(localMuzzleOffset);
Edit: and perhaps useful, the 3D math tutorial: Keynote