- Home /
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 ?
Comment
Best Answer
Answer by e-bonneville · Mar 27, 2010 at 06:19 PM
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.