-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Use real_t in physics code #45519
Use real_t in physics code #45519
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.
The changes look good.
Just a couple things I'm wondering:
- There are still references to PACKED_FLOAT32_ARRAY in ConvexPolygonShape2DSW and ConcavePolygonShape2DSW data, I guess they can be changed as well (it's just error messages it seems).
- It might be outside of this PR's scope, but float is still used extensively in scene nodes, including physics 2D and 3D. Should it be changed too to make sure things stay consistent when using double precision?
@pouleyKetchoupp I will likely copy more stuff out of #21922 later to more PRs if it's something that has a good chance of being merged. |
e55139f
to
cb9fc11
Compare
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.
I'd merge and see what happens!
Thanks! |
This was originally part of #21922, however that PR is taking forever to be reviewed, so I took the physics parts of it and put it into this PR. @AndreaCatania has already given #21922 an approval, so hopefully this PR won't take too long to get in (of course, more eyes are welcome, so I've requested a review from the entire Physics team).