Do you remember it a bit more specific? Like were there any string or cords or something like that. Chances are that you had an OBE. Out of body experiences are more unintentional then astral projection(which is when you're doing it consciously and aware. Although most people consider OBE and astral projection to have the same meaning. Which they kinda do, but don't. It's a bit weird I know).