I am using cocos creator 3
I am using following code to move scale and rotate 3d object
tween(this.coverHolder)
.to(5.0, { position: endPos?.position, rotation: new Vec3(49, 0, 0), scale: endPos?.scale },
{
easing: "linear",
onComplete: () => {
]
}
})
.start();
the rotation i have give is the start rotation of the object. I expected that it will not rotate at all, but move and scale.
But for some reason the object completely disappear.
If i remove the rotation then all work fine
May I know whether I have given rotation tween correctly?