cleaned up raycast proof of concept
total time should pause when the app is paused