Build a physics wall that stops bouncing - SOLVED

Get help using Construct 2

Post » Sat Nov 24, 2012 2:23 pm

Hi all!

I am trying to build a physics game similar to the classic jenga game.

I have a solid floor and several blocks that I build a wall with. What I want is to clock on a piece of the wall and remove it. This works, however the wall doesn't stop bouncing, even when I have elasticity set to off.

capx: http://dl.dropbox.com/u/93868285/Physics%20Wall.capx

Game: http://dl.dropbox.com/u/93868285/Physics%20Wall/index.html

I played around with the amount of gravity which does improve things (like 2 or 3), but sometimes I again run into a situation where the blocks simply don't stop moving / swinging as if they have an engery source of their own :)

DOH!

Answered my own question. Solved it by increasing the linear and rotational dampening.Mau1wurf19772012-11-24 14:33:28
B
5
Posts: 23
Reputation: 1,038

Post » Mon Nov 26, 2012 8:39 am

Hi all!

I still wasn't 100% happy and playing around with friction, elasticity and all these properties didn't really improve things.

However I had more luck with the action: Physics world stepping

I increased particularly one setting: Position iterations. I changed it from 3 to 30 and now the blocks settle down quickly, even at gravity 10.

I checked the manual and while "Set stepping iterations" is explained, position iterations is not.

So I'm wondering if someone could help me understand this particular setting. Whatever it does it solves my issue. The blocks settle down quick and the game is now really nicely playable and I can think about adding a system for players to take turns and so on...
B
5
Posts: 23
Reputation: 1,038


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Google [Bot], Magistross, mallorcaredes, zatyka and 28 guests