-
Notifications
You must be signed in to change notification settings - Fork 162
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
Минус ноль в UI консоли шаттла #715
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Округление до целого это слишком сильно, нужен 1 знак после запятой как раньше
Между 0.51 тайла в секунду и 1 тайлом в секунду есть существенная разница
https://learn.microsoft.com/ru-ru/dotnet/api/system.math.round?view=net-8.0#system-math-round(system-double-system-int32-system-midpointrounding)
GridLinearVelocity.Text = $"{gridVelocity.X:0.0}, {gridVelocity.Y:0.0}"; | ||
GridAngularVelocity.Text = $"{-gridBody.AngularVelocity:0.0}"; | ||
GridLinearVelocity.Text = $"{Math.Round(gridVelocity.X):0.0}, {Math.Round(gridVelocity.Y):0.0}"; | ||
GridAngularVelocity.Text = $"{Math.Round(gridBody.AngularVelocity):0.0}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
зачем убран минус?
получается AngularVelocity направлен полностью в другую сторону
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
зачем убран минус? получается AngularVelocity направлен полностью в другую сторону
Окей, сейчас доделаю другие вещи и займусь этим
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@Ady4ik Офы уже поменяли консоль шаттла. Думаю пр можно просто закрыть. |
@DexlerXD закрываем |
Описание PR
Убран -0.0 с UI консоли управления шаттла
Медиа
Проверки
Изменения