I am totally new to UE, like extremely new so I need a help.
I want my object, which is a gun, move back on -x axis upon shooting. Now I can rotate my object using Left and Right Arrow key. After rotating, the gun doesn’t travel on rotated x axis but on initial x axis. So please help me on this! Thanks!
Reference video and blueprints are there in the link:
Here instead of directly adding impulse (-100.0, 0.0, 0.0) you should add it relative to the gun. The simplest way is to get its forward vector and to multiply it by -100 (which will make it point back) like so: