Shooting
Last updated
Was this helpful?
Last updated
Was this helpful?
Shooting is the action or practice of shooting with a gun.
We designed the Shooting effect to add recoil procedurally to the player's guns when shooting, doing the work that a shooting animation would usually have to do. This component makes the guns move back and rotate up to simulate a gun firing.
This component works by using to know when the player is firing, and whenever the player fires, it adds a position and a rotation force.
It then takes these forces and multiplies them by the corresponding multipliers before finally passing the result to the to apply them.
When changing what this effect looks like there are two variables that you can adjust, those being the position
and the rotation
; These two fields are of Vector3 type, and decide the direction in which the forces get applied, and the amount of it that gets applied.
We included that affects the position and the rotation of this effect as a field to customize to your liking, and with its help the effect can look a lot of different ways.
As with any other effect, you can find a multiplier for it in the for the player’s current state, as always we multiply the forces in this component by the multipliers in the State Data before applying anything.