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

Fix unit suffixes for Generic6DOFJoint #83672

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

mihe
Copy link
Contributor

@mihe mihe commented Oct 20, 2023

Generic6DOFJoint currently lacks suffixes for a couple of its properties. For the most part this is just a matter of visual aid, but in the case of the angular "Equilibrium Point" properties, as well as the angular "Target Velocity" properties (similar to #80523), this also changes them to be displayed in degrees rather than the radians that they're intended to be stored as.

The changes are as follows:

  • Linear Motor / Force Limit
    • Added suffix kg⋅m/s² (N)
  • Linear Spring / Equilibrium Point
    • Added suffix m
  • Angular Limit / Force Limit
    • Added suffix kg⋅m²/s² (Nm)
  • Angular Motor / Target Velocity
    • Changed to radians_as_degrees
    • Added suffix °/s
  • Angular Motor / Force Limit
    • Added suffix kg⋅m²/s² (Nm)
  • Angular Spring / Equilibrium Point
    • Changed to radians_as_degrees (and thus suffix °)
    • Constrained it to the range of -180 to +180 degrees, like most other angle properties in Godot

None of these should be breaking changes, as far as I know.

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Oct 20, 2023
@akien-mga akien-mga merged commit f333e4a into godotengine:master Oct 20, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@mihe mihe deleted the 6dof-suffixes branch October 20, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants