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

Use GlobalTransform #177

Closed
wants to merge 1 commit into from

Conversation

Shatur
Copy link
Contributor

@Shatur Shatur commented May 27, 2022

Use GlobalTransform instead of Transform to place colliders correctly and added a test for it. I also had to add GlobalTransform to all examples.

@sebcrozet
Copy link
Member

Thank you for this PR! The transform writeback formulae is slightly incorrect (the translation part should take the parent’s rotation into account). In addition, I see that instead of querying the parent’s global transform, you recover it from the child global transform and transform. While this is a good idea to avoid a query, it will break the transform change detection we do in apply_rigid_body_user_changes.

I have a fix ready for these, it it appears that I don’t have the access right to push to your branch. Could you please enable edits from maintainers?

@Shatur
Copy link
Contributor Author

Shatur commented May 28, 2022

@sebcrozet for unknown reason I don't see such button:
изображение

Maybe you can just create another PR based on my?

@sebcrozet sebcrozet mentioned this pull request May 28, 2022
@sebcrozet
Copy link
Member

@Shatur That’s weird… Ok, I created a new PR: #178 Closing this one.

@sebcrozet sebcrozet closed this May 28, 2022
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.

2 participants