setRotateAnimation does not work on Shadertoolkitv11

  • #1, by stothewSunday, 30. September 2018, 16:10 5 years ago
    Hi there!

    as some know there is a "setRotateAnimation" funktion based on the shadertoolkit. Unfortunately the changes in v 11 breaks it. Is anybody able to fix this?

    here is a pastebin with the "current one"


    Thanks!

    Forum Fan

    127 Posts


  • #2, by afrlmeSunday, 30. September 2018, 16:31 5 years ago
    No idea about that, but you don't need to use the shader toolkit to rotate objects/animations - just use the to() tweening function instead - as long as the animation is linked to a scene object then it will rotate with the object.

    game.CurrentScene.SceneObjects["example"]:to(10000, {ObjectRotation = math.rad(360)})

    to(delay, {arguments}, easing, loop, play-forwards-then-backwards)

    Imperator

    7278 Posts

  • #3, by stothewSunday, 30. September 2018, 17:15 5 years ago
    I know the name is quite confusing.. but the function is for a "wind animation" it distort the image based on some noise. I saw sebastian using it, too.. so may he is also interrested in updating it to work with v11 shaderkit.

    hope i´m allowed to post his vid:

    look at the plants on the left... this is the "setRotateAnimation" function wink

    Forum Fan

    127 Posts

  • #4, by SimonSSunday, 30. September 2018, 18:00 5 years ago
    I have already updated the rotate animation, redownload here: https://www.visionaire-studio.com/luadocs/#rotate-animation

    Thread Captain

    1580 Posts

  • #5, by stothewSunday, 30. September 2018, 18:33 5 years ago
    works perfekt! Thank you so much!

    Forum Fan

    127 Posts

  • #6, by afrlmeSunday, 30. September 2018, 19:18 5 years ago
    Ah yeah, I forgot we had this function. Rotating grass & trees & so on. Sorry.

    Imperator

    7278 Posts