diff --git a/docs/userguide-bg.md b/docs/userguide-bg.md index bcae9f3..5ba649a 100644 --- a/docs/userguide-bg.md +++ b/docs/userguide-bg.md @@ -342,11 +342,9 @@ man.r_wrist.turn -= 60; със същите свойства, които се използват за статична поза. Mannequin.js дефинира функция `animateFrame`, която определя потребителска функция за анимация. Тази потребителска функция се извиква в цикъла на анимацията веднъж за всеки кадър. -Всички промени в позата трябва да бъдат дефинирани в функция +Всички промени в позата трябва да бъдат дефинирани във функцията ([пример на живо](example-dynamic.html)). Параметърът *t* е времето, измерено в -десети от секундата. - -Потребителската функция може да се подаде и като параметър на `createScene()`. +десети от секундата. Потребителската функция може да се подаде и като параметър на `createScene()`. [](example-dynamic.html) @@ -404,7 +402,7 @@ function animate(t) поза между *posture0* и *posture1*. Следващият пример слива позата на [една фигура](example-posture.html) и я копира в [друга фигура](example-posture-standing.html) ([пример на живо 1](example-posture-blend.html) и [пример на живо 2](example-posture-blend-2.html)): -[](example-posture-blend.html) [](example-posture-blend-2.html) +[](example-posture-blend.html) [](example-posture-blend-2.html) ``` javascript // две фигури diff --git a/docs/userguide.md b/docs/userguide.md index b3a6ec2..d0b3971 100644 --- a/docs/userguide.md +++ b/docs/userguide.md @@ -289,7 +289,6 @@ man.r_wrist.turn -= 60; The dynamic posture – i.e. a posture that changes over time – is set with the same properties that are used for static posture. Mannequin.js defines the function `animateFrame`, which sets a user-defined function for animation. This user-defined function is called in the animation loop once for each frame. All changes of a posture should be defined inside this function ([live example](example-dynamic.html)). The parameter *t* is the time, measured in tenths of seconds. - The user-defined function can be passes as an argument to `createScene()`. [](example-dynamic.html) @@ -336,7 +335,7 @@ There is alternative `postureString` property to get or set the posture as a str Postures could be blended via Euler interpolation (i.e. linear interpolation of Euler anglеs). The class method `blend(posture0,posture1,k)` mixes the initial *posture0* and the final *posture1* with a coefficient *k*∈[0,1]. When *k*=0 the result is *posture0*, when *k*=1 the result is *posture1*, when *k* is between 0 and 1 the result is a posture between *posture0* and *posture1*. The following example blends the posture of [one figure](example-posture.html) and copies it to [another figure](example-posture-standing.html) ([live example 1](example-posture-blend.html) and [live example 2](example-posture-blend-2.html)): -[](example-posture-blend.html) [](example-posture-blend-2.html) +[](example-posture-blend.html) [](example-posture-blend-2.html) ``` javascript // two figures