Article View: comp.lang.c
Article #1602Re: [p.i.c] ships flyin and faitin
From: fir
Date: Mon, 16 Nov 2026 23:33
Date: Mon, 16 Nov 2026 23:33
54 lines
3495 bytes
3495 bytes
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
Technical Details
Message-ID:
<11dg3rf$769$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>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:33:03 +0100 Organization: A noiseless patient Spider Lines: 54 Message-ID: <11dg3rf$769$1@dont-email.me> References: <11dfm1u$3rhtq$1@dont-email.me> <11dfrbn$3te4n$2@dont-email.me> <11dfudl$3uc92$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 16 Nov 2026 23:33:03 +0000 (UTC) Injection-Info: dont-email.me; logging-data="7369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/k5WG543qTW5Ym09gaEjva8TF9Ljm6VJg="; 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:iRiQPSIv5hvlIn2bm4Rl7Ij5wxQ= sha256:qEwTObDN0qrhz9veIK3C1SYbMcf69HVZJ7MBIulkvQ4= sha1:4HA7nq8g2rghKEOh8LFiVWrXVRs= sha256:R5G0yW5lJEzvW7v1QIIlRdciyW8MUSmH6eRquIEB3L4= In-Reply-To: <11dfudl$3uc92$2@dont-email.me>