🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1818

[pic] avoidance problem

#1818
From: fir
Date: Mon, 23 Nov 2026 20:00
16 lines
2003 bytes
imagine you got a flyin ships in space (which may be treated as spheres)
they got direction and forvard velocity, they may turn yaw/pitch also 
slow down or accelerate... the yaw pitch slowdown/acceleraty is by 
applying forces (yaw_force, pitch_force.. and so on, this force is from 
0.0 to 1.0 which is max, usualy max is applied and this force gives 
increases some taw/pitch velocity but there is also damping)

the problem is i need to vrite a good routine that would make good 
result in avoiding

the input is position, radius, direction, forward_velocity for both 
participants (i mean for each ship i run it in the loop for any other so 
it make pairs)

what ai gives me not quite work and this is exampla how working with ai 
look like, i need myself somewhat rationalize it to find good answer
Technical Details
Message-ID: <11e2610$26vvs$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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: [pic] avoidance problem
Date: Mon, 23 Nov 2026 21:00:32 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <11e2610$26vvs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 23 Nov 2026 20:00:33 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2326524"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19srEwnbmiXkGvN5qlZzXxBqYNWXHPQPvA="; posting-host="cb57700b627c63fdcf4461b50f598e32"
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:zyvV1Fg67ate3nslfsKy/lmG0Ak= sha256:8xcJP+f2RayDNtVPqIhxtkle6BYtfou+VazT3AS4dWs=
	sha1:FrJQB4lWtOh0KPMGpnRbIT1qubk= sha256:FJYxGPR3lsnk+R6NvmTU3WcDqvt1df0XmaylgLsR4GI=
X-Mozilla-News-Host: news://news.eternal-september.org:119