Posted 05 May 2012 - 09:59 AM
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.
Posted 05 May 2012 - 10:10 AM
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...
Posted 05 May 2012 - 10:22 AM
Posted 06 May 2012 - 01:43 AM
Maybe get a screenshot of what you have thus far...
Posted 06 May 2012 - 11:01 AM
Here is a screenshot of the present game. Is that in any way helpful?
Edited by Creativita, 07 May 2012 - 04:20 AM.
Posted 07 May 2012 - 06:04 AM
Posted 07 May 2012 - 06:16 AM
first block dorpped can set the grid!
Posted 07 May 2012 - 07:19 AM
Posted 07 May 2012 - 08:38 AM
Good luck! sorry I couldn't do more.
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