Added an overloaded method to raycast from current position with
a single ray through multiple spaces. This method is used for the
dynamic approach using cubes.