setRotateAnimation does not work on Shadertoolkitv11

  • #1, by stothewSunday, 30. September 2018, 16:10 A year 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

    122 Posts


  • #2, by afrlmeSunday, 30. September 2018, 16:31 A year 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)})
    1

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

    Imperator

    6772 Posts

  • #3, by stothewSunday, 30. September 2018, 17:15 A year 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

    122 Posts

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

    Thread Captain

    1312 Posts

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

    Forum Fan

    122 Posts

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

    Imperator

    6772 Posts

Write post