hello blueprint experts. I’m trying to do something similar to a baseball bat, where i hit an npc with a baseball bat and i want him to fly in that direction using physics. Right now it works, but not as intended. The character will fly, but kind of random direction, and i checked tthat it doesnt seem to be working in local space, it seems to be in world space. i just Can someone please help me fix this?
ps: I tried using Z as well in the vector multiplication, i just happened to take the screenshot when checking if for some reason my X was my forward direction.
cant you just take your players forward vector and add an impulse in that direction? maybe add some upward force to get the target off the ground.
edit: or did you want the target to fly off based on the bats direction? the title of you question and content seem to conflict. you’d use the hit normal if thats the case.
thank you! doing that and multipying my actor fascing direction by a float(of 15000 in this case) did the trick!
or actually…im only able to make it work when i multiply by a float(but then i cannot really control the height of how much the other actor is going to go up) when i multiply by another vector it doesnt seem to work(seems like it gets back to World space)
there are very few scenarios where you would want to multiply two vectors together.
multiplying the vector by a float will increase the strength of the impulse.
to get the target to fly up you would multiply 0,0,1 by some float, then you Add the two forces together.
(vectorA x floatA) + (vectorB x floatB)
fantastic!!! it works perfectly