RayCast work

Fixed bug in getEntitiesRay
added new getEntitiesRaySorted method
added collission masks to both raycast methods.