Is it possible to change center of mass in rube?
Posted: Thu Mar 20, 2014 7:17 pm
Hi there. When I create a body it seems that it places the center of mass (white mark) in the middle of the shape, but when I transform the vertices/add more vertices the center of mass does not change. Is it possible to change it?
Also, another quick question not directly related to rube. In some sample scenes your ground has one body and one fixture in the items f6 list... e.g. getting started has a leftground body and only 1 leftground fixture(well that you can access) and then the same for right ground, but then in other scenes you have one static body and many fixtures that go with it and you can access each individual fixture. I've been creating 1 body/1 fixture for each section of the ground, but maybe I should just make one body and add all fixtures to this body. Which method should I use? When should I use each method? If this isn't clear I'll take screenshots for you. Cheers.
Also, another quick question not directly related to rube. In some sample scenes your ground has one body and one fixture in the items f6 list... e.g. getting started has a leftground body and only 1 leftground fixture(well that you can access) and then the same for right ground, but then in other scenes you have one static body and many fixtures that go with it and you can access each individual fixture. I've been creating 1 body/1 fixture for each section of the ground, but maybe I should just make one body and add all fixtures to this body. Which method should I use? When should I use each method? If this isn't clear I'll take screenshots for you. Cheers.