Update RayCasting.scala