Article View: comp.lang.c
Article #1285[programming in c] small spacecraft piloting
From: fir
Date: Tue, 03 Nov 2026 03:21
Date: Tue, 03 Nov 2026 03:21
64 lines
3871 bytes
3871 bytes
as i said i find programming in c a valid topic on comp.lang.c though i understand maybe it will get no many answers as c is like commo denominator and programing a thing not necessary but if i got some things i may share, maybe it will get some outcome though probbly not here is video on it https://www.youtube.com/watch?v=vJ-Q-OA5ONY i added a small spacecraft piloting to my (fully pure c) rasterizer and it simply opens some problems that are near "walls" by walls i name such situation when you want to obtain something but you hit the wall and it stops you.. here im not exactly hit the walls maybe but may be near so i maybe name some (and if someone want may comment on this) 1) as i said i want to obtain a "juicy" result and piloting a ship is near some wall here becouse i noticed that flyin in emptu space just by camera for some reasons looks better, i dont know its maybe becouse concentration of viewer is not focused on a ship in the centre so more engagement is put in viewing the 3d scenery - observing that ship in the centre spoils it though aside there is also some advantage of it as ships has its side and when it flyies thru scenery closely the size of the scenery is better illustrated..but the first problem stays (the question is how to improve this?) 2 second problem is steering... this is quite serious problem..it is how to steer the ship to make all go look good... right now camera is pinned to the ship but when i move a mouse its rotating around it and only if i press right mouse button the ship began to turn in stright looking direction - so i f i need him to turn 20 degrees right i just look the camero 20 degrees right and press right button...the routines according to which he changes its angular velocities also need to work i also stop the whole scene when nor right mouse button is pressed without that it all wass to fast (i mean enemies dont need to stop and look around, they move ans shoot too fast, so pause is imo good way) (how to improve it?) 3. third problem is the algorithm for bots - how they should behave.. i mean they should be skillful fighters so they should go out when im on them, they should also turn ad shoot and generally make good lookin space fights this is also open question 4. there are potential more topics here - like i dont added any potentially costly things like collisions - but as to this i dont wanna burdem my code with it yet (as it wil be burden so maybe i should work first on mentioned problems.. they are hard enough)
Technical Details
Message-ID:
<11cbk0d$3eaqo$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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: [programming in c] small spacecraft piloting Date: Tue, 3 Nov 2026 04:21:49 +0100 Organization: A noiseless patient Spider Lines: 64 Message-ID: <11cbk0d$3eaqo$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 03 Nov 2026 03:21:49 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3615576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VqMWrFiZxCtUOKd6PEyhhV/iWf2Aw0bY="; posting-host="74e0b903fc41719bd550775fdb1cba7e" 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:jLkO4H4d5DlBtvjJaLcaRmeYYBY= sha256:wUcyHWJoPZG+aHlK3dsdm7wBl/HCA0/frQKGevTa8wI= sha1:YfeRuR74/IgMayS4Ow89mMKmyFA= sha256:n0RkVJOnNZwO7Sy/yjffqi4D/bBfxeqO8YgPwJg9ogI= X-Mozilla-News-Host: news://news.eternal-september.org:119