Parenting - CleverChaoFrontiers/Blendhog-Level-Creator-Blender-Addon GitHub Wiki
Parenting is a technique that lets an object be connected to another object. This is useful for grouping objects together, or making an enemy stay on top of a moving platform.
Step 1: Placing the objects
ยจ
Here, an EggRobo enemy has been placed on top of a AirFloor object, which is set to move a certain distance back and forth. Normally, the EggRobo would stay in place but we want it to follow the platform.
Step 2: Parent the object to the platform
Start by selecting the object(s) that you want connected to the platform and then while holding down shift, select the platform to make it active. You can tell it is active due to it having a yellow outline, while the non-active objects have an orange outline.
Next, press CTRL + P
In the menu, choose "Object(Keep Transform Without Inverse)". You can choose the normal Object option as well, but it will be reverted to this option when exporting.
Now you are done and the EggRobo is now a child object of the Parent object. Exporting yields this result:
IT WORKS!
Step 3: Unparenting the object
If by any chance, you would like to unparent the object without deleting it, you can do that as well!
Choose the child you want to unparent, in this case the EggRobo. Then press ALT + P.
In the menu, choose "Clear and Keep Transformation" (if you only choose clear, the object will be placed at the same position relative to the parent but instead relative to the world origin. Keep transformation will make the object keep its global location).
Written by CleverChao