How do I do this?

Hello, I didn’t know how to explain this in the title to be honest.

What I’m trying to get here is if one part hits another part, only the side where the first part hit can be affected, like an area of effect

In this image, the yellow part is clearly on one side of the wall more than it is the other, so how would I get the part to only affect things on that side? My guess is raycasting but I don’t know how I would make it work with a whole sphere

I hope I explained that good enough.

2 Likes

I don’t really know what you’re doing, but yes raycasting or magnitude can help figure that out.

If you’re trying to affect only one part of a part, that is pretty difficult. I would just have a piece of the ball be a different part and the other piece of the ball just be it’s own part (Unless the amount of the ball on one side of each wall is random, in which that wouldn’t work)