I’m currently developing a game where players drop stone blocks to build a fortress. At the start, a bastion (collision static) appears below. The player’s task is to drop the stone block onto the bastion without it toppling over.
However, I’m facing an issue where the collision system no longer works accurately when moving the blocks downward!
Hey!
I just want to start by saying thanks for including a video and a detailed diagram!
In order to solve this issue I would consider the following:
- Make blocks apart of a single “Parent Block” entity once they get added to the stack, and remove all dynamic collisions from the parent block.
- Make sure your blocks are reasonable size. The physics engine works best when objects are sized as they would be in real life, or bigger. In this case make sure your blocks are at least 1 unit tall, and 2 units wide.
Let me know if that helps to solve the issue.
Hi @GeorgeButler
There are some points I’m not clear about.
I want the blocks that are placed to still be affected by physics simulation. If the player places them off-center, all the blocks stacked on the bastion will fall. Therefore, removing all dynamic collisions from the parent block would not align with the game design.
That makes sense, in that case I would keep them dynamic, or just keep the top most one dynamic. I’d recommend increasing the scale of all of your objects as well to improve the physics calculation results.
I will try it. Thanks for your support!