Genji ball - Ball bouncing on surfaces?

Hi, I’m trying to remake a Genji ball mode for my group of friends with multiple maps and stuff and I wondered if it was possible to make the sphere bounce on surfaces like walls, floor, ceiling etc… I tried changing everything related to the sphere in the WS but it seems like it just goes through the environnement whatsoever. If it’s possible or at least possibly close to that I’d love to have some help. Thanks !

You can use raycasts to detect the surface of your map. By combining the propulsion vector of the ball and the ray cast, if the distance between the position of the ball and the contact position of the ray cast is smaller than the radius of the ball, it can be judged as a collision.