Announcement

Collapse
No announcement yet.

Need help With Raycasts hitting objects

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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.

    Click image for larger version

Name:	Untitled-1 copy.png
Views:	1
Size:	221.3 KB
ID:	1127235

    Comment

    Working...
    X