Solid block physics - mbrx/FysiksFun GitHub Wiki

Solid block physics

Full world block physics work by computing a gradient field of forces that act on all block. The force that acts on a block is the sum of all blocks that are supported through it. If these forces become too large the block may break and slide away from it's position and/or fall.

If a block can track an uninterrupted path of "physics block" to bedrock then it is said to be supported. If it is not supported it will fall.

If a falling block or breaking block moves over blocks that are not "physics blocks" then they will destroy these blocks and drop the corresponding items.

A falling block that hits other blocks will cause a temporary pressure wave that increases the forces acting on the blocks and that may break nearby connected blocks that are close to their maximum threshold.

There are options for configuring the strength/weight of all blocks and if they should be affected by physics or not. This should work also for blocks from other mods, you need to run FF once with the other mods and then come back and edit the FysiksFun-rules.cfg file for this.

The physics computations are currently limited to an area close to the player, and computing the forces that act on blocks are done gradually and takes time. Therefore a block may support very high loads for a small amount of time until the physics calculations have caught up. Also, blocks in the ground may sometimes be affected by stress forces depending on the underground activities (think of this as earth quakes), this is especially noticable in structures that can form a loop of forces (like a bridge where the return of the forces occurs through the ground).

Naturally occurring stone have been made very strong (otherwise mining would be impossible), and as such it is no longer possible for the player to place stone in the world himself. Use cobblestone or stonebricks instead for your houses. (You can still craft stone and use it in recipes).