Download

Need help With Raycasts hitting objects

So when a raycast from my character hits the sphere in my game i want the sphere to get launched in the other direction of where the raycast was fired. basicly move an object with raycasts.

This should work,

So when you do the line trace, cast to the actors that you want to be affected by this mechanic, Make sure the mesh is simulating physics if it is, then Add Impulse At Location and set the Impulse to be the same vector that is passed into the “End” pin of the Line Trace, but multiply it by a float (I used 20) this is the power that it will fly off at in the opposite direction.

1d29fdf5a807a3bf989d5db78b56468b5a56e973.png