Creating a Vector3 direction calculated from point A to point B

Heyho, I’m working on a explosion and I’m trying to make it so that it doesn’t hurt through solid walls. I do this with Raycasting. However, I don’t know how to create a direction from the explosion’s origin facing towards the position of the object inside it’s explosion range, without having to rotate the explosion object itself. There’s a unit called “Vector 3 - Rotate Towards” which seems that what I needed but why are there two other values, these max deltas? This overwhelms me to be honest. Any quick solution?

Here’s a look at my spaghetti of a flow machine for the explosion:

1 Like