Hi !
I'm playing right now with Aframe position attribute on 3d object and with tweenmax.
The way you advices with the :
el.setAttribute('position', {x: 1, y: 2, z: 3})
Works well but is it possible to use the attr attribute from greensock ?
This one doesnt works ....
TweenMax.fromTo(element, 5000), { attr:{position:{x: 1, y: 1, z: 1}} },
{ attr:{position: {x: 5, y: 5, z: 5}},
delay: 4000,
ease: Strong.easeOut
}))
This way works but in a blink of an eye the value switch to 1 -> 5 so you dont have animation, just replacing values
TweenMax.to(element, 5000,
{ attr:{position:"30 30 30"}, ease: Strong.easeOut, delay: 4000
})
Do you have an idea please?