Bullet static mesh fires out at an angle IF i move forward at the same time.. Also fires at an angle if i aim up or down.
I have a bullet static mesh that is set to fire forward using an impulse, it works fine when stationary and i see the bullet static mesh fire in a perfect straight line, my problem is two fold, the first problem is that when i fire the bullet and hold 'W' to move forward at the same time, the bullet goes in a straight line still, but the bullet static mesh fire out at an angle, almost sideways! If I hold 'A' and 'D' to strafe left and right, the bullet appears to fire straight (atleast from what I can tell) but it is when i hold forward that the problem occurs, also my character pauses for a millisecond when i press fire while moving forward, but this does not happen when i am strafing or moving back! I can't help but think this is connected and tied in to the bullet going sideways when moving forward, as the pause only occurs moving forward when firing too.
My second problem related to the bullet firing is, if i aim up or down, the bullet static mesh always seems to stay somewhat horizontal, so while the shot does go where i fire, the bullet static mesh comes out more horizontally without vertically adjusting.. so if i aim directly up at the roof, the bullet comes out kind of horizontal, even though you would want the bullet to appear to be firing straight up rather than sideways.
Here is a screenshot of my blueprint:
I hope this makes sense, its hard to explain some of it to be honest! I am new to UE4 been using it for a few weeks, learning very fast but still figuring out some bits.
You should use projectiles for that purpose.
answered May 26 '17 at 03:53 PM
Bullet is implemented as projectile object? It should have movement component to fly, and it shouldn't use any impulses...
here is example documentation for it:
you can check BP implementation of projectiles in First Person template project.
Its a special class of objects that used for bullets, grenades, rockets and so on.
answered May 26 '17 at 04:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here