You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a simulation similar to a see-saw, to see how changing weight on each side changes the angle of the beam.
I have sliders that change the weights of the bodies on the either side of the beam. I linked the value of the slider to the density of the bodies on either side of the beam.
When I move the slider, I see that the mass of the corresponding body changes when I log it in the console.
What does does not change is the center of mass of the whole See-Saw compound body (which contains the two weighted bodies on either side of the beam), because of which the beam does not move (the angle of the beam does not change) when the weight on one side is greater than the other side.
I read in #684 that the COM is only calculated once. Is there a way to update it when the weights change dynamically during run-time, like in my case?
Thanks.
The text was updated successfully, but these errors were encountered:
I am trying to build a simulation similar to a see-saw, to see how changing weight on each side changes the angle of the beam.
I have sliders that change the weights of the bodies on the either side of the beam. I linked the value of the slider to the density of the bodies on either side of the beam.
When I move the slider, I see that the mass of the corresponding body changes when I log it in the console.
What does does not change is the center of mass of the whole See-Saw compound body (which contains the two weighted bodies on either side of the beam), because of which the beam does not move (the angle of the beam does not change) when the weight on one side is greater than the other side.
I read in #684 that the COM is only calculated once. Is there a way to update it when the weights change dynamically during run-time, like in my case?
Thanks.
The text was updated successfully, but these errors were encountered: