Skip to content
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

Improve spaceship movements #21

Open
aromanro opened this issue May 7, 2022 · 0 comments
Open

Improve spaceship movements #21

aromanro opened this issue May 7, 2022 · 0 comments
Assignees

Comments

@aromanro
Copy link
Owner

aromanro commented May 7, 2022

Currently following a movement command, the spaceship rotation accelerates up to a certain angular velocity then it rotates with a constant angular velocity (if the angle is large enough, otherwise this constant velocity won't be reached), then it decelerates up to the target angle, it rests there for a little while then it turns back orienting itself in the direction of the camera.

The problem is that a new command during this time will interfere with the movement, because the code takes into account only the spaceship orientation, but not the angular velocity when a new orientation is required.

This obviously can be improved.
It's quite boring stuff so I probably won't change it for a while.

@aromanro aromanro self-assigned this May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant