由用户创建的信息 Konstantin Khomyakov
13 April 2016 16:26
13 April 2016 15:46
28 March 2016 12:31
25 March 2016 17:11
спасибо за идею, но как-то совсем трудно это использовать: скорость должна изменяться плавно и в зависимости от текущей; с f-curve это всё работало автоматическиДинамически вставлять ключи средствами движка на данный момент возможности нет,
но, возможно, вам пригодится метод set_speed модуля animation
https://www.blend4web.com/api_doc/module-animation.html#.set_speed
с его помощью можно изменять скорость анимации
25 March 2016 15:07
Для сглаживания перемещений использовал модуль time. Там есть функция animate, но она даёт прямолинейную зависимость от времени.Опередили
Совершенно верно!
Так же в простых случаях можно воспользоваться логическими нодами Move To и Transform Objects с параметром duration
23 March 2016 17:56
21 March 2016 14:33
So if i understand well. When i need to map a large area i could just check the X and Y of the mouse click and launch a function that would be more efficient than calling pick_object.Seems correct
In the case for example where i have two navigation objects. If I use viewport alignement they would always be at the same place. so if i determine a max and min X and Y i could simplify my app by checking if i click in a zone on the screen rather than calling pick_object?
Of course it would need a bit of math to recalculate the desired zone according to the viewport size for every device or every time the viewport size changes.
21 March 2016 12:31
18 March 2016 13:10
18 March 2016 12:40
But i wonder if i start an animation with the node tree can i stop it by calling a JS function?Hi!
I wouldn't be modifying the node tree behavior. I was thinking of looping a animation with the don't wait option. But to stop it within the node tree is going to be hell.
So could a stop animation be called from my JS file? Does it sound OK?
As far as i can see it should work