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

FromVert bodies are able to rotate though each other. #1299

Open
brendenderp opened this issue Jun 9, 2024 · 0 comments
Open

FromVert bodies are able to rotate though each other. #1299

brendenderp opened this issue Jun 9, 2024 · 0 comments

Comments

@brendenderp
Copy link

image

In the image above I have two bodies made from verticies. As you can see the larger Grey body encapsulates the other body while still being a closed loop. The large body is not set to be static but has a large mass of 20,000 while the smaller body had a mass of about 8. Applying a torque rapidly via console (or withing a game loop using phaserJS) the body is able to rotate though the larger body.

This is the case when setting the torque value directly. Or setting angularVelocity.

Screenshot_20240609_141058_Gallery

What I'd expect to happen is the point that dips into the other body would experience a force equivalent to the depth it dips in that forces it in the opposite direction.

I haven't tested this with static bodies or other bodies aside from with fromVertice bodies.

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

1 participant