Debian Codegraph @

examples/animations/simultaneous_animations_one_scene/README.md

raw symbols SCIP
1 # Playing multiple animations simultaneously
2
3 Demo of reading glTF (exported from Blender) file with multiple animations,
4 each animation affecting different objects in the scene.
5 You can use `TTimeSensorNode.Start` and `TTimeSensorNode.Stop` to control
6 these animations separately.
7
8 Note that using `TTimeSensorNode.Start` and `TTimeSensorNode.Stop`
9 is a bit harder than using `TCastleSceneCore.PlayAnimation`
10 and `TCastleSceneCore.StopAnimation` (and you will miss some `PlayAnimation`
11 features, like cross-fading between previous and next animation).
12 But it allows you to independently control multiple animations
13 within the same `TCastleSceneCore` instance.
14
15 ![Screenshot](screenshot.png)
16
17 Using [Castle Game Engine](https://castle-engine.io/).
18
19 ## Building
20
21 Compile by:
22
23 - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_.
24
25 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.
26
27 - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `animate_transform_by_code_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus).