Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

setRotateAnimation does not work on Shadertoolkitv11

  • #1, di stothew horas 8 years ago Zitieren
    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!
  • #2, di afrlme horas 8 years ago Zitieren
    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)
  • #3, di stothew horas 8 years ago Zitieren
    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

  • #4, di SimonS horas 8 years ago Zitieren
    I have already updated the rotate animation, redownload here: https://www.visionaire-studio.com/luadocs/#rotate-animation
  • #5, di stothew horas 8 years ago Zitieren
    works perfekt! Thank you so much!
  • #6, di afrlme horas 8 years ago Zitieren
    Ah yeah, I forgot we had this function. Rotating grass & trees & so on. Sorry.