"getRotation" returns the manual rotation in Custom Edit mode, but not the random rotation.
To get the full transform, you would use "getFullTransform". It returns a transformation Matrix (which includes scale, rotation and translation), in local coordinates of the Forest object.