basic collision behavior using ray casting done