- Home /
Questions about a Bow and Arrow FPS setup
So what I'm currently doing is I'm animating a bow and an arrow both as one object, creating an animation for the load, load_standby, and launch. Now what I'm curious about is how I can turn the arrow into a projectile without it just being a solid piece of wood flying straight ahead, with no collision or anything of the sort (being as right now my launch will consist of the arrow leaving the bow and just flying straight forward, and when the animation ends, the arrow disappears). I have a basic knowledge of programming, but nothing complex. If there is a script out there I could be recommended to, that would be preferable.
There is a good FPS tutorial which I used for my first test/play around/learn by doing (post basic tutorial) which fires a pre fab projectile out from first person view.
http://download.unity3d.com/support/resources/files/FPS_Tutorial_1.pdf
I think if you work through that (the first part at least; to get the projectile fired) it should give you a good base to work from!
It covers setting up the spawn/release point, ensuring it doesnt register a collision with the player as you fire etc so was quite helpful for me! I have only been playing around with unity for a few days so take my thoughts with a grain of salt!!!
Hope it helps a bit though - good luck!
Answer by TheDavil86 · Aug 11, 2012 at 03:23 PM
You'll need to take the model of the arrow away from the bow and make a separate model of that also. And then you'll need to create a prefab of the arrow that has the proper colliders and scripts set up so that when it hits something it does whatever you want. I'd suggest following the tutorial recommended above as it will guide you through setting up a basic weapon that shoots spheres, and instead of the sphere just use your arrow model.