you could have just checked the source code lol, but anyway i just do .direction.angle() with the direction variable representing a Vector2 of the direction the snail is going in, ranges from Vector2(-1, -1) to Vector2(1, 1), you can know more about this by searching about the angle() method