/** Updates the transform of an attached model based on that of the primary. */ protected static void updateAttachedTransform( Model attached, Transform3D mtrans, boolean rotate) { Transform3D atrans = attached.getLocalTransform(); atrans.set( mtrans.getTranslation(), rotate ? mtrans.getRotation() : Quaternion.IDENTITY, atrans.approximateUniformScale()); attached.updateBounds(); }