Block Toppling
#1
Posted 05 May 2012 - 09:59 AM
#2
Posted 05 May 2012 - 10:04 AM
At its simplest, I suppose you could find the area of the base of the structure by finding the distance from the furthest left point to the furthest right point. Then, find the center of mass of the rest of the structure by adding all the x and y coordinates, multiplying by a mass value, and then dividing by the number of coords to find an average. If the centre of mass lies to the left or the right of the area of support, then the tower would topple.
EDIT: Extend this to check at every level. As in, find the 'base area' for the lowest level of the tower, and calculate whether every block above would balance. Then check the second lowest level, find the base area here, and calculate whether every block above THAT level would balance. Then the third lowest level, and so on to the top.
Edited by ND4SPD, 05 May 2012 - 10:09 AM.
#3
Posted 05 May 2012 - 10:10 AM
#4
Posted 05 May 2012 - 10:15 AM
How are these blocks going to work? Objects, or part of an array? Are they aligned to a grid? I'll need considerably more info about how this game works...
#5
Posted 05 May 2012 - 10:22 AM
#6
Posted 06 May 2012 - 01:43 AM
Maybe get a screenshot of what you have thus far...
#7
Posted 06 May 2012 - 11:01 AM
EDIT:

Here is a screenshot of the present game. Is that in any way helpful?
Edited by Creativita, 07 May 2012 - 04:20 AM.
#8
Posted 07 May 2012 - 06:04 AM
#9
Posted 07 May 2012 - 06:16 AM
first block dorpped can set the grid!
#10
Posted 07 May 2012 - 07:19 AM
#11
Posted 07 May 2012 - 08:38 AM
Good luck!I am now experimenting with Extreme Physics. But thank you for your help.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











