-
Notifications
You must be signed in to change notification settings - Fork 714
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
compound body center of mass #230
Comments
Hi, |
Thank you! I got it to work. My program uses voxel shapes, so it was easy enough to calculate the COM and move everything like you said.
|
Thanks for the awesome physics library -- it's fast and works nicely with three.js! 😄 Letely I've been playing around with compound bodies using .addShape(...); like this example. It all works as expected except that, as I add shapes, the body behaves as though the center of mass is in the wrong place. It seems like it's located at the body's origin. My intention is to have the COM move as I add shapes to the body -- I'm assuming the shapes all have the same density. Is there something else I need to do?
The text was updated successfully, but these errors were encountered: