Star Sonata
http://forum.starsonata.com/

AI collision
http://forum.starsonata.com/viewtopic.php?f=92&t=43797
Page 1 of 1

Author:  DarthFirebert [ Fri Mar 04, 2011 10:07 pm ]
Post subject:  AI collision

I found these two hives stuck on the exact same spot. It looks like they are trapped in eachothers' tractor beams, or that they thrust just enough to cancel out the beams and get stuck or something. I don't know if this is a bug or not, but it is odd.

Author:  JeffL [ Sat Mar 05, 2011 1:35 am ]
Post subject:  Re: AI collision

I don't think this is a bug. Or if it is, it's not clear to me at all what the bug is. They could just be sitting on top of each other, which ships will do, though it does look kind of broken in C2 and not broken in C1, since in C1 they stack.

I'm wondering if we should add a little something where ships "inside" each other will periodically generate a small force apart, kind of like if they were hit by a tiny mass driver, to nudge ships away from sitting over each other.

Author:  cgcgames4 [ Sat Mar 05, 2011 9:04 am ]
Post subject:  Re: AI collision

2 ways to fix this. you either put a collision code around the ship so the ships will simple bounce off each other (set the collision box/sphere out side the range of each ship). Also add a bank feature to the ship after colliding (this will give the fell of it turning away and not actuarially hitting).

For example if you had to ships coming together offset by a little bit. When they hit the collision code one would bank right other would bank left to avoid hitting.

second way is offsetting the ships on the z axis. so as they pass over they simply go above or below the ship they are passing over.

Author:  MasterTrader [ Sat Mar 05, 2011 7:38 pm ]
Post subject:  Re: AI collision

Yeah, if they functioned like magnets function it would be awesome. As two magnets of the same polarity get closer, the force pushing them apart gets stronger.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/