CBlob::Settle

From King Arthur's Gold Wiki
Jump to: navigation, search

Settles object in physical world.


This function will settle object in phyiscal world. In other words, it removes any interaction with ingame phyiscal laws from the blob. Best described with following example: When you place stone wall, consisting of three stone blocks, all of these blocks are placed in Settle state. If you destroy the bottom most stone block, other two will start UnSettle and start interacting with phyiscal laws, thus drop until they hit the ground, where they turn into rubble.

void Settle()


Example (In this example you first spawn stone block that will stay still in the middle of the air, because you remove any phyiscal (law) interaction when it spawns using Settle function):

CBlob @block = CreateBlob( "genericitem", "Entities/Structures/Stone/Block1x1.cfg" );
block.setPosition(getControls().getMouseWorldPos());
block.Settle();

Object method of: CBlob