Article View: comp.lang.c
Article #1603Re: [p.i.c] ships flyin and faitin
From: fir
Date: Mon, 16 Nov 2026 23:53
Date: Mon, 16 Nov 2026 23:53
72 lines
4251 bytes
4251 bytes
fir pisze: > fir pisze: >> Chris M. Thomasson pisze: >>> On 11/16/2026 11:37 AM, fir wrote: >>>> i toy with this 3d rasterizer and get some 3d ships (kinda like >>>> aeroplanes/jets but in space) and want to code them interesting >>>> flying behaviours >>> [...] >>>> it just take array of 3d points and if near some then it turn to >>>> another and it in fact looks well...but i need some more >>> >>> Just ask your AI to do it for you... Right? Why even think about >>> doing it yourself... Sigh... >>> >> >> i can ask ai but i want to have people some chance for fun.. >> >> besides things need some proportion..and some need sometimes to go >> slow and try something other etc ..usenet thinking resolves problems >> slower >> but like more deep than talk with ai - and i need some slower and >> deeper thought > > one i could think is for example: > > the most strightforward attempt for ship to fight is to just 100% aim at > target (my ship) and shoot...ewentually slow speed up if im far and slow > down if im close - i see the bullets incoming on hud (as a linear 3d > stream so i could try to dodge if im far) > (speed of bullets right now 150 m/s my ship speed like typically 60 m/s) > > speeding up eventually makes sense as from far distance its harder to > hit, slowing down when close eventually yet more sense > > some problem is some could say if incoming ship is fire'ing it only > shots in direct way stright of his flight so he cant dodge if its aiming > at me, coz if its turns the bullet stream points in another direction > (which in fact if turnings are small may be good, say tutning in some > area could make a trap of bullats, i mean wider bullet stream, cone > instead of line > > > eventually is ship want to aim me he could make strafe moves and > correct turning toΒ aim me atill strafe moves making him moves and > make it harder to hit > > that could be a basic piece of theory > > IN FACT i could run the bot vs bot space fights and obserwe ho will win > so this could b a good programming contest..alghoritm vs algorithm > and i can put a video which one wins ;c > > also possible to run alghoritms for whole escadres fight > > its not so hard though it need some focus > here are basik video of this https://www.youtube.com/watch?v=3k6OlNCLzE4 there are two drones and 2 lame fighters as enemy drones have algorithm/procedure to sit on tail and they are too agile to dodge them they sitt on tail like flies - thoug here they exploded probbaly catching the ranndom bullets or i got soem error in algorith and they exploded on own bullets maybe (need to check it later) two lame fighters are easy to shot (they use this algorithm fly near 500 m to 200 m if less than 200 m shoting go away 600 m and repeat) o got not strong cpu so this video dropped many frames it seems
Technical Details
Message-ID:
<11dg51k$he7$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11dfm1u$3rhtq$1@dont-email.me> <11dfrbn$3te4n$2@dont-email.me> <11dfudl$3uc92$2@dont-email.me> <11dg3rf$769$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: fir <profesor.fir@gmail.com> Newsgroups: comp.lang.c Subject: Re: [p.i.c] ships flyin and faitin Date: Tue, 17 Nov 2026 00:53:24 +0100 Organization: A noiseless patient Spider Lines: 72 Message-ID: <11dg51k$he7$1@dont-email.me> References: <11dfm1u$3rhtq$1@dont-email.me> <11dfrbn$3te4n$2@dont-email.me> <11dfudl$3uc92$2@dont-email.me> <11dg3rf$769$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 16 Nov 2026 23:53:24 +0000 (UTC) Injection-Info: dont-email.me; logging-data="17863"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+Jgql5iiCLqZoYm2amqL0ggyNRg1mdAU="; posting-host="ffaeb1a4357f66637402e7443ff79a2b" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 Cancel-Lock: sha1:KDpCr5DOo3tqTDO4q9O9gRN4Aws= sha256:pvt62vrYzZqEDz/bv+MG3NZ3E2tP2iHm3zk7w1w7aYo= sha1:rU2WcAQNdZQQxTQZ+v9ooBGPiW0= sha256:TtLzCiFnJSvgib9HFLs9GMMaE/urpjvpMjgpFD3Dw+4= In-Reply-To: <11dg3rf$769$1@dont-email.me>