I have a flaming sword and what I want to do is to be able to launch a ball from a basket like a cannonball when I set fire to the basket. I tested it out using the spacebar in the BP below and it does work. The ball fires upwards.
However I can’t seem to get the impulse to work on the ball when I use a oncomponentbeginoverlap and cast to the sword. Can anyone see what I am doing wrong?
I use an add impulse on a ball in my game doing the following:
On a ball blueprint. I have a function for intereractball.
This function just has one input for a vector. And does a add impulse. And bel change is checked. And the vector connects to a vector * float.
Float is the power or speed. Say 2800.
On the character I use an on overlap with for example a collision box. That casts t ball. And runs the function. And gets the players camera manager and forward vector. And that’s plugged into the cast function call so the ball will launch in the direction I’m looking.
The ball of course is set to simulate physics and generate overlap events.