Hello guys. I was making my own script to let my gun shoot.
I've tried a lot of ways, from raycasting to instantiating my bullet game object, and the last option is working near to perfectly.
The problem is, the script is inaccurate, becouse when my bullet spawn and goes foward, it goes under my crosshair.
Is there a wait to make it 'right'? I mean, make my gun shoots like in other fps games?
Here are the scripts : http://pastebin.com/UX89xJmJ and http://pastebin.com/pais1Ur0
Here are screenshots : http://i67.tinypic.com/a9wewp.jpg and http://i64.tinypic.com/334uuxw.png and the last one http://i64.tinypic.com/zlqjj5.jpg
Maybe that will help you better understand my problem :)
↧