mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 18:39:46 +00:00
update doc/*/vca.md
This commit is contained in:
parent
1f2e938d83
commit
bbe1873bc7
2 changed files with 36 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ Two kinds of curve definitions are currently available, each producing a value `
|
|||
- `@scale` - scales an object/bone (multiplier)
|
||||
- `@zoom` - camera zoom (multiplier)
|
||||
- `@texture` - change of a dynamically assigned texture (see [skeleton:set_texture](scripting/ecs.md#skeleton))
|
||||
- `@control` - changing flag values, such as visibility
|
||||
|
||||
## Metadata
|
||||
|
||||
|
|
@ -96,6 +97,23 @@ If you do not wish to limit the animation duration via `configure` but want to l
|
|||
}
|
||||
```
|
||||
|
||||
Example of using the `control` directive:
|
||||
|
||||
```vcd
|
||||
# Specific bone
|
||||
@control bone head flag visible period 20 {
|
||||
@key frame 0 value on
|
||||
@key frame 10 value off
|
||||
}
|
||||
|
||||
# Entire skeleton
|
||||
@control flag visible period 30 {
|
||||
@key frame 0 value on
|
||||
@key frame 10 value off
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Expression curves
|
||||
|
||||
The attribute describes a function `f(t) = x`, where t is time in seconds.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue