Jointed Destructible Objects can be set up to break in smaller pieces when being detached from the joint. For example a wooden sign falls off the signpost and breaks into several planks. The object properties must contain the information about the pieces used. The pieces need to be linked to the object that was formerly whole. The pieces must also be referenced in the Object properties/UDP of this object.
Before reading this topic, make sure you have gone through the documentation for creating Jointed Breakable Objects.
Beneath is a simple scene with a sign post. The objects in blue are the pieces that will spawn when the red sign is hit with a force. Make sure that these also have their own phys proxies as well. As you may have read in the Breakable Objects documentation, the joints hold the sign in place until hit and the connection will break.
The pieces that spawn when the object is hit must be children of the original object, in this case the red sign. Everything else is a child of the export node (breakable_sign).
You must specify the pieces that the red sign will spawn in the object properties like in the picture below. Also remember to assign properties to the individual pieces.
Once this is all setup, export to a .cgf and check it in the engine
A full list of property strings can be found here.
The cryexportnode_filename is the top node that contains the export properties for the object. Select the cryexportnode, open up the exporter then click "Add Attributes". A new tab in the export window will appear. Choose the .cgf format for this asset.
All the objects that you want to export have to be a child of this node. Below you can see the hierarchy of how the jointed parts of the sign have been setup:
Joints are named _joint$$ ($$ is replaced with the joint number). To add the pieces that the specific jointed part will break into when disjointed, make them children of the jointed part. See the picture below for more clarity:
Notice how the _piece01_group and _piece02_group are children of the sign_group. The naming convention has to be _piece$$_group ($$ is replaced with the piece number). So, the sign will break into these pieces after its disjointed.
Here is a screenshot that shows how the pieces look:
Each group node should have Extra Attributes. You can do this by selecting a group and in the Crytek tab, click UDP (User Defined Properties).
Most of the group nodes should have a Mass/Density attribute except the groupnode filename_helper (in this example it's named signBreak_helper). If you want the pieces to remain after falling apart, make sure to type in 'entity'.
A full list of property strings can be found here.
For the object that dissolves into further pieces, you need to add a custom string attribute to it's group node. In our example, select sign_group and click Add Attributes. Choose a String data type with Long Name "pieces".
Here you can specify the pieces that the sign mesh object will break into: pieces=_piece01_group, _piece02_group
Each _piece$$_group should have a mass. Also, each breakable joint should have limit.
Once done, you can export the cgf file and test it in game.
Now, you can place the object in Sandbox as a breakable object and observe how the table breaks.
Start by placing a BreakableObject in your level from the RollupBar > Entity > Physics directory.
Then, with the BreakableObject selected, change the Model from the Entity Properties.
Now set up the table's textures in the Material Editor
Finally, test the table by shooting in game mode.