Conteúdo do Curso
Unreal Engine FPS Game
Unreal Engine FPS Game
Projectile BP Overview and adjustments
In this chapter, we will take a look at the BP_FirstPersonProjectile
which is the bullet that is fired by the rifle! Here, we will make the projectile a bit smaller and adjust the speed so that the projectile moves much faster!
- To make the projectile smaller, we click on the Collision Component and set the scale to something like
0.6
feel free to play around with this and choose the size that you want for your projectile. - Next, to adjust the speed, we choose the ProjectileMovement component and change the Initial Speed and Max Speed in the Details panel. To make the projectile travel faster, you can give the Initial and Max speed a value like
12000.
But feel free to adjust this to your needs and play around with various numbers.
Note
If you set initial speed and max speed to
zero
, the projectile will still move once it is spawned. This is because of another element in the Details panel that is affecting the projectile, called Velocity.
Find Velocity in the Details panel and set all of its values to zero and you will see that the projectile does not really move once you shoot your weapon.
Good thing to remember is that as you can see, in front of Velocity, there are three fields. Each of these correspond to an axis in 3D space. The first one is back and forth, the second one is to the sides, and the third one is up and down. Feel free to play around and change these values, but do not forget to set them back to 3000, 0, 0
as before.
Obrigado pelo seu feedback!