rotate

fun rotate(dirRotate: DirRotate): DirYZ

Rotates the current direction based on the given DirRotate direction.

Return

The new DirYZ direction after rotation.

Parameters

dirRotate

The direction to rotate (DirRotate.CLOCKWISE or DirRotate.COUNTERCLOCKWISE).