| 1 | # Build and Animate Transform by Code |
| 2 | |
| 3 | Constructs 3D model (X3D nodes graph) by code, |
| 4 | initializing an array of TTransformNode instances. |
| 5 | Then animates it by code (changing TTransformNode.Translation in every Update). |
| 6 | |
| 7 | Using [Castle Game Engine](https://castle-engine.io/). |
| 8 | |
| 9 | ## Building |
| 10 | |
| 11 | Compile by: |
| 12 | |
| 13 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 14 | |
| 15 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 16 | |
| 17 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `animate_transform_by_code_2_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |
| 18 | |
| 19 | - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `animate_transform_by_code_2_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details. |