Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by alijan · Jul 01, 2012 at 12:07 PM · flying

Need some suggestions for making flying bird AI ?

well i want to make a flying bird AI for a shooting game . but can't find the good way to set it perfectly . i have a character who can target with a rifle for shoot the flying birds on sky . the suggestion is how can i make the birds can attack to the player (random) . and birds want to fly around in the sky with limited area which was set with sphere collider .and how to make a fall down to the ground event as a riged body physic when the player shoot the birds . and another one is those birds can stole something from the scene for example : on the scene there have some Grapes , if player can't shoot the birds untill birds get the Grapes . the game is over . it's a 3d game ! waiting for someones respond .

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by captaincrunch80 · Jul 16, 2012 at 01:01 PM

I recommend reading a book about AI.

"Artificial Intelligence for games" Second Edition Ian Millington, is my fav, but of course, I did not read them all.

There are real good, easy to understand, implementations for such behaviors in pseudo code. Complete with why this, why that, complexity, etc.

What you look for is flocking and swarming with/or some other steering behaviours like wandering (if it is not a swarm).

For you special scenario, there is also a lot of custom scripting involved, like the landing, attacking, steeling. But implementing the basic steering behaviors will make that easier too, because you can just say i.e. "arrive at point" and it will fly there for an atacking move or something. Then the bird uses "flee" followed by "wandering" or "swarm flocking" again.

Best of luck! Getting things like this running is much fun. Make the basic steering behaviors as reuseable as possible and you will profit from your work for a long time.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alijan · Jul 16, 2012 at 01:38 PM 0
Share

thank you Captaincrunch80 , i will read that book carefully soon . this comment makes me clever . Godspeed sir !

avatar image
0

Answer by luozitian · Jul 02, 2012 at 06:00 AM

the simple way is to use Itween.you can create the path at runtime and this way may be more real or you can set up fixed path for bird to fly.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alijan · Jul 16, 2012 at 12:08 PM 0
Share

with this can i reach another fall down to the ground event when the bird shooted by a gun ?

avatar image
0

Answer by kilian277 · Jul 16, 2012 at 12:23 PM

For the flying part you can look at the bootcamp demo it has a crow ai where the crow just flies in the sky.

For the landing part you have to have an animation for that and you probably need to calculate the height of the bird, or have a sort of script that checks if the bird is on the ground it will stop the fly down animation and start the attack animation.

Try it with this

Hope this will help a little for you to understand on how to do this

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alijan · Jul 16, 2012 at 12:45 PM 0
Share

thank you . i'll try my best ...

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

changing velocity through scroll wheel 2 Answers

How do I set an updraft in my glider simulation? 1 Answer

Oculus Rift controller gravity off? 1 Answer

Array of different rigidbody 0 Answers

How to make a 3d model plane fly? 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges