Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Dynamic bullet spread

525dhz525dhz Member
edited May 21 in Programming

How to make Dynamic bullet spread in unity 3D please. (physics bullets only not raycast)

Comments

  • edited July 7

    In your update method, randomly rotate the firepoint depending on a "spread" value. That should work : )

    Like this: firePoint.rotation = Quaternion.Euler(Random.Range(-spread, spread), Random.Range(-spread, spread), Random.Range(-spread, spread));

    btw the spread value should be a float and the firepoint is the part you shoot bullets from.

  • edited July 7

    Are you gonna try it?

  • edited July 7

    It works.

  • edited May 22

    Have you tried it? it works for me!

  • Please try it

Sign In or Register to comment.