hi, I have converted the first person blueprint gun into a laser gun and i would like to add impulse physics to any object being hit by the laser similar to the base prefab, I am new to visual scripting and am unsure how to approach adding a hit detection to an object if hit by the laser. I would like to eventually make it so if a specific object is hit by the laser/line trace it will, for example, begin to rotate.
Hi, in your “Break Hit Result” the “Hit Actor” will be the object you’ve hit with your linetrace, the “Hit Component” will be the component you’ve hit. If you want to add an impuls to the component you’ve hit it must have “physics” enabled.
So you could check if the component has physics enabled and then add a force or an impuls at the hit location.