Help with "Movable" attribute?
wvonbernuth
Member Posts: 1
My game has platforms which scroll up from the bottom and items (boxes, balls, etc.) which fall from the top. The intention is when the items falling from the top hit the platforms, the items will essentially land on the platforms and start moving up-screen at the same rate as the platform.
The issue I am having is when the items land on the platforms the platforms move a little bit. I believe this is because of the work around I had to do. Here is how I have it working.
The falling items have a very low density (set to 0), no friction, and no restitution. The platforms have a very high density (set to 1,000,000), no friction, and no restitution. Both the platforms and the falling items are set as "movable". I think it is setting the platforms to "movable" that causes the issue. If the platforms are not "movable" the falling items will simply land on them and the platforms will not move when they are hit. However, if I make the platforms not "movable", I also can't get them to scroll up-screen.
My solution was to make the platforms "movable" and set their density very high with the falling items density very low. This helped alleviate the moving of the platforms when the falling items landed on them, but not completely. The platforms still move a bit when hit by the falling items.
Any suggestions on how to fix this issue?
Thanks
The issue I am having is when the items land on the platforms the platforms move a little bit. I believe this is because of the work around I had to do. Here is how I have it working.
The falling items have a very low density (set to 0), no friction, and no restitution. The platforms have a very high density (set to 1,000,000), no friction, and no restitution. Both the platforms and the falling items are set as "movable". I think it is setting the platforms to "movable" that causes the issue. If the platforms are not "movable" the falling items will simply land on them and the platforms will not move when they are hit. However, if I make the platforms not "movable", I also can't get them to scroll up-screen.
My solution was to make the platforms "movable" and set their density very high with the falling items density very low. This helped alleviate the moving of the platforms when the falling items landed on them, but not completely. The platforms still move a bit when hit by the falling items.
Any suggestions on how to fix this issue?
Thanks
Comments
cheers