Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Not accurate bullets

Discussion in 'Getting Started' started by MyKarcio, Feb 19, 2020.

  1. MyKarcio

    MyKarcio

    Joined:
    Dec 13, 2017
    Posts:
    5
    Hello I am making FPS game and I Instantiate object to shoot him, everything is good, but when I want to shoot from barrel of gun, bullets instead of flying towards the crosshair they are flying next to it. Any help to fix it c: ?
    Sourcecode of gun:
    https://pastebin.com/UMR2ubhJ
    Also sourcecode of bullet
    https://pastebin.com/5QyyUgpj