Skip to content

[WIP] make autopilot smooth #6189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

Mc-Pain
Copy link
Contributor

@Mc-Pain Mc-Pain commented Jul 2, 2025

This could be aimed to close #6136

vector3d inta = intf / m_dBody->GetMass();
vector3d intdv = inta * frameTimestep;

vector3d intdvSmooth = intdv * 60.0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of the magic number 60 here? Is it related to the framerate or just an arbitrary scalar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an arbitrary scalar, it smoothens the calculated force by 1 second of gameplay (but could be anything)

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.

Ship's autopilot sometimes does not look smooth
2 participants