How to detect if a bullet hits a slope

i want bullets to be deflected when they hit a slopped surface
something like this

To detect if a bullet hits a slope, or any BasePart in general, you should try raycasting. And if you are wanting to make the bullet be deflected, try using the Normal of the raycast to calculate where it should be deflected.

1 Like

Here’s a small demo I created to show how it works and how it would look like. You can use this as a starting point if you don’t have one already.

ReflectionDemo.rbxl (51.1 KB)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.