Goodday!
I’m trying to make a throw effect by launching a actor forward from players location. I tried using add impulse to location put I didn’t seem to get it to work.
Any help is appreciated.
Goodday!
I’m trying to make a throw effect by launching a actor forward from players location. I tried using add impulse to location put I didn’t seem to get it to work.
Any help is appreciated.
AddImpulse could be a good approach, use GetForwardVector on the player to get it’s orientation and multiply it to a number to increase the intensity (otherwise it won’t be noticeable)
Another type of approach is to add a Pojectile component to the launched actor and configure it to be launched as soon as it’s spawned (you can take a look at the ball projectile blueprint in the first person template)
I tried this. So it’s grabbing a scene component on my character where it spawns a branch. And then it adds Impulse At Location but it doesn’t seem to work.
I have litterly no idea what I’m doing wrong here.
Just use AddImpulse not AddImpulseAtLocation and try to toggle the “Vel Change” bool if it doesn’t work.
The input is of type Primitive Component Object Reference so you should get from your actor a Static or Skeletal mesh (it’s better if it’s set as root because it would move all the attached scenes)
Alr Ill try that, I already have everything atached to one component so that should already work fine.
Works perfect. Thanks!