Center of Mass does not adjust

I know now why my workaround not worked, basically because of another bug. I had also sphere component attached with 0 Mass which is basically only a target for the camera. Even though it has no mass it changed the center of mass on every reattach. I tried to turn of collision of it but that only crashed the whole engine on play. I then turned welding for it off and then it doesn’t change the center of mass anymore.

My workaround is now the following: a extra component that is attached to the parent and get set to the position of the ball every tick while also getting detached and reattached every tick. This then updates the center of mass accordingly to the ball position.

Following bugs are now connected to the center of mass:

  • Constraint change of linear position doesn’t update center of mass at all
  • Attached component change of position only updates center of mass when detached and reattached
  • The amount of mass has no impact on the center of mass
  • A non physics component without collision weld attached on a physic simulated component can crash the engine
1 Like