Initial collision detection logic based on raycasting
Initial collision detection logic based on raycasting