- Home /
How to stack boxes as a column with balanced swinging?
Hi, I am making a simple building game like City Bloxx, but now I am confused about how to make the swinging column as u can see in the video. According to the gameplay, I think there are some points about it:
It keeps swinging with a certain maximum and minimum angle. In other words, if there is no new piece drop to the column, it will keep swinging with the same angle until game over.
The swinging range can be changed by stacking new piece. E.g., a piece drops down to the dead center of the top piece of the column, then the swinging range will reduce just like giving a force to balance the column. Inverse, if a piece cannot drop down to the dead center, then the swinging of the column will change according to the position of the piece. Even leading to the game over.
What I am thinking about is using the hinge joint
to link the pieces of the column, but I am not sure if it is feasible, and I am not clear about the details of implementation of hinge joint
. Or can u give any advise about this?
Your answer
Follow this Question
Related Questions
Keep Hinge Joint 2D swing speed? 1 Answer
How to detect if player made building is air-tight(2D) 1 Answer
HingeJoint2D.jointAngle flips between two values based on rotation 0 Answers
Why does hingejoint push part upward?,Why does hinge joint make the part move up? 0 Answers
I want my 2D character to fall down as chain after he dies 1 Answer