Glue

From Fancade Wiki
Revision as of 14:28, 27 June 2024 by -u ndefined- (talk | contribs) (Created page with "'''Glue''' sticks voxels and objects together. They are represented as studs upon editing an object. At the core, two voxels stick together if and only if their glue are directly touching each other. This means you may have multiple separate objects in a single edited block. Blocks placed next to each other automatically group into a single larger object. This is great for static things, such as a level, which will create a shading known as [https://en.wikipedia.org/wik...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Glue sticks voxels and objects together. They are represented as studs upon editing an object. At the core, two voxels stick together if and only if their glue are directly touching each other. This means you may have multiple separate objects in a single edited block.

Blocks placed next to each other automatically group into a single larger object. This is great for static things, such as a level, which will create a shading known as ambient occlusion and draw efficiently to keep the game running smoothly.

For moving things, you probably do not want them to glue to nearby blocks. For example, if you use script to move a character, and it has glued to the level, the entire level will move too! So you want to remove the glue from the character block's sides.

Removing glue dots requires editing the block. In case you have complex moving shapes, and do not want to make a lot of custom blocks with various glue sides, another method is to build the whole moving object off the sides, so its blocks don't directly touch e.g. the level blocks. Then use script to move it into place on Play, it will happen before the first frame is drawn, so completely unnoticeable to the player.