x


Seagulls flying through models ?

I used seagulls prefab from island demo,and added few of my models. All models have colliders,and they work fine. But seagulls just fly through them. Is there a way to prevent seagulls from flying through? I thought about editing their flight path,but don't know anything 'bout that. Anyone have idea that might help ? alt text

more ▼

asked Mar 27 '10 at 04:31 PM

milan gravatar image

milan
24 2 2 6

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Well, the problem is that script always overrides physics. What you could do is use a raycast to determine if the seagull is about to collide with something, then if it's about to collide, move the seagull up. Here's a link to the Raycasting docs. It's something to think about, but I'd really have to have a look at the seagull's flight path code, then maybe I could help you.

more ▼

answered Mar 27 '10 at 06:19 PM

e.bonneville gravatar image

e.bonneville
5.7k 100 116 165

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1700
x238
x46
x2

asked: Mar 27 '10 at 04:31 PM

Seen: 1575 times

Last Updated: Mar 27 '10 at 04:31 PM