Make proximity mine stick to walls and floors?

I have made a proximity mine that blows up and deals damage when enemies get too close and am currently using a projectile movement component and spawning it just like the first person template’s projectile. It’s basicly a very short cylinder with a flashing sphere in the middle on one side. Is there a way to make the object turn it’s underside towards the floor or wall it hits and stop there? What functions do I need to use and what components would I need?