X Tutup
Skip to content

Improve calculations in AIMatchVel (AIChangeVelBy)#6296

Open
Gliese852 wants to merge 6 commits intopioneerspacesim:masterfrom
Gliese852:better-aimatchvel
Open

Improve calculations in AIMatchVel (AIChangeVelBy)#6296
Gliese852 wants to merge 6 commits intopioneerspacesim:masterfrom
Gliese852:better-aimatchvel

Conversation

@Gliese852
Copy link
Contributor

The problem with the current version is that if the powerful thruster is turned away from the direction of the required speed, it pushes the ship to the side when gaining speed. This happens because the velocity vector is decomposed along the directions of the thrusters, and each thruster independently tries to maximize its component.

In the new version it is done so that the direction of the thrust vector necessarily coincides with the direction of the required speed.

Also wrote tests that allow to see the problem with the previous implementation and test the new one.

@Gliese852 Gliese852 force-pushed the better-aimatchvel branch 2 times, most recently from de0ef65 to e152fdf Compare February 11, 2026 21:01
Gliese852 and others added 6 commits February 17, 2026 13:19
Vital update is SDL2 with 'offscreen' video driver support. Also
replaced apt-fast which is now missing from the image and
the default repository, with apt-get.
The problem with the current version is that if the powerful thruster is
turned away from the direction of the required speed, it pushes the ship
to the side when gaining speed. This happens because the velocity vector
is decomposed along the directions of the thrusters, and each thruster
independently tries to maximize its component.

In the new version it is done so that the direction of the thrust vector
necessarily coincides with the direction of the required speed.
Otherwise, the linker discards the symbol "OutputVersioningInfo", and
then a linking error occurs.
@Gliese852
Copy link
Contributor Author

Hurray, CI is working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup