Shooting System

I am working on a tank game. I need to figure out a shooting and point setup. Any examples or scripts you all want to share? I am a complete beginner to all of this, so please explain as much as possible. Thanks!

To what level are you looking for…arcade like or realistic?

Realistic.

I would start with the basics. I am also dev’ing a Tank sim. It isn’t easy with no experience.

Um, that doesn’t tell me anything. Thanks for the help ._.

Start learning basic Unity scripting first, then dive into some game related math. When you know both of these rather well then create your tank game.
You need patience to become good at this. Start with some very basic games and then work your way up.

So you all won’t even point me in the right direction? Thinking that just cause I am new to Unity means that I can’t make what I am wanting is rather stupid. I can make what ever I want in here!!!

My guess is you can use something like Vector3.RotateTowards to target a specific point.

because Rigidbodys are unreliable at high speeds, I would go with Raycasting folowing a balistic curve (trajectory) …
now you have two points to go for Raycast and trajectory

EDIT:
http://en.wikipedia.org/wiki/Trajectory
http://docs.unity3d.com/Documentation/ScriptReference/Physics.Raycast.html

If you cant figure out how to find tutorials, why should we assume you can do anything…

There are tonnes of resources/tutorials out there which are EASY to find if you have anything between your ears.

We are not here to spoon feed you like a child. Go help yourself.

I did point you in the right direction, you just dont see it. Anyways try google or youtube :wink:

And gl!

Ok well um, when you don’t show any effort in trying to think of a shooting system (the easiest systems there are to make), then we believe you are a total n00b. I don’t even know why in the art of abortions you are trying to make games without any prior programming experience. If you had any, which you showed that you had not even the slightest toenail of, then you would EASILY and EFFORTLESSLY create a shooting system. Go learn C++ or something before trying to create a realistic, physics based shooting system FOR TANKS. Goodness! You are not the smartest person in the world and I could care less than public exorcism that you could create anything you want on here cause we all can.

+1

  1. He did point you in the right direction
  2. Learn some coding
  3. Look up tutorials and possibly on YouTube. Don’t forget the ‘.com’
  4. Shooting setups are the easiest setup
  5. We can create what we want too

Have fun.