mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-23 02:49:46 +00:00
update doc/*/vca.md
This commit is contained in:
parent
a036a590ab
commit
ed799233e5
2 changed files with 8 additions and 8 deletions
|
|
@ -28,7 +28,7 @@ Two kinds of curve definitions are currently available, each producing a value `
|
||||||
- `@scale` - scales an object/bone (multiplier)
|
- `@scale` - scales an object/bone (multiplier)
|
||||||
- `@zoom` - camera zoom (multiplier)
|
- `@zoom` - camera zoom (multiplier)
|
||||||
- `@texture` - change of a dynamically assigned texture (see [skeleton:set_texture](scripting/ecs.md#skeleton))
|
- `@texture` - change of a dynamically assigned texture (see [skeleton:set_texture](scripting/ecs.md#skeleton))
|
||||||
- `@control` - changing flag values, such as visibility
|
- `@show` - visibility of a bone or the entire skeleton/object (if no bone is specified)
|
||||||
|
|
||||||
## Metadata
|
## Metadata
|
||||||
|
|
||||||
|
|
@ -97,17 +97,17 @@ If you do not wish to limit the animation duration via `configure` but want to l
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Example of using the `control` directive:
|
Example of using flag directives like `show`:
|
||||||
|
|
||||||
```vcd
|
```vcd
|
||||||
# Specific bone
|
# Specific bone
|
||||||
@control bone head flag visible period 20 {
|
@show bone head period 20 {
|
||||||
@key frame 0 value on
|
@key frame 0 value on
|
||||||
@key frame 10 value off
|
@key frame 10 value off
|
||||||
}
|
}
|
||||||
|
|
||||||
# Entire skeleton
|
# Entire skeleton
|
||||||
@control flag visible period 30 {
|
@show period 30 {
|
||||||
@key frame 0 value on
|
@key frame 0 value on
|
||||||
@key frame 10 value off
|
@key frame 10 value off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ VCA файл состоит из набора директив, порядок
|
||||||
- `@scale` - масштабирование объекта/кости (множитель)
|
- `@scale` - масштабирование объекта/кости (множитель)
|
||||||
- `@zoom` - масштаб камеры (множитель)
|
- `@zoom` - масштаб камеры (множитель)
|
||||||
- `@texture` - смена динамически-назначаемой текстуры (см. [skeleton:set_texture](scripting/ecs.md#skeleton))
|
- `@texture` - смена динамически-назначаемой текстуры (см. [skeleton:set_texture](scripting/ecs.md#skeleton))
|
||||||
- `@control` - изменение значений флагов, таких как видимость
|
- `@show` - видимость кости или всего скелета / объекта (если не указана кость)
|
||||||
|
|
||||||
## Мета-информация
|
## Мета-информация
|
||||||
|
|
||||||
|
|
@ -97,17 +97,17 @@ VCA файл состоит из набора директив, порядок
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Пример использования директивы `control`:
|
Пример использования директив-флагов, таких как `show`:
|
||||||
|
|
||||||
```vcd
|
```vcd
|
||||||
# Конкретная кость
|
# Конкретная кость
|
||||||
@control bone head flag visible period 20 {
|
@show bone head period 20 {
|
||||||
@key frame 0 value on
|
@key frame 0 value on
|
||||||
@key frame 10 value off
|
@key frame 10 value off
|
||||||
}
|
}
|
||||||
|
|
||||||
# Весь скелет
|
# Весь скелет
|
||||||
@control flag visible period 30 {
|
@show period 30 {
|
||||||
@key frame 0 value on
|
@key frame 0 value on
|
||||||
@key frame 10 value off
|
@key frame 10 value off
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue