Look on smilebasic source for a ray cast game and there should be a file in the folder called raycast.lib