separate raycast handling for water layer