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

2D Physics Joint #2790

Closed
FuskaS2 opened this issue Oct 4, 2023 · 5 comments
Closed

2D Physics Joint #2790

FuskaS2 opened this issue Oct 4, 2023 · 5 comments
Assignees

Comments

@FuskaS2
Copy link

FuskaS2 commented Oct 4, 2023

URL : https://github.com/cocos-creator/creator-docs/blob/master/en/physics-2d/physics-2d-joint.md

Seems that joints (at least hinge) needs not only rigidbody, but also colliders to work properly. Please mention it somewhere, Took an hour to me to find out where is the catch,

@UniqueDisplayNameIsInUse

Thank you for your feedback.
This issue has been fowarded to the develop team

@minggo
Copy link
Contributor

minggo commented Sep 29, 2024

@FuskaS2 could you please provide a demo? I reviewed the codes, and didn't found joint2d relies on collider.

@FuskaS2
Copy link
Author

FuskaS2 commented Oct 2, 2024

Hi, I m sending the simple scene that represents the issue
hingeScene.zip
Check the behavior when Sprite-SIMPLE has BoxCollider2d turned on vs off.

@minggo
Copy link
Contributor

minggo commented Oct 8, 2024

Yep, i can reproduce the issue. I will take a look.

@minggo
Copy link
Contributor

minggo commented Oct 10, 2024

I looked the codes, currently, Shape depends on Collider, and physics effect depends on Shape. So Joint depends on Collider indirectly.

I will modify the documentation to mention it.

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

No branches or pull requests

5 participants