Hi,
I'm trying to scale an object as it moves along a path. As if it you are looking down on a ball bouncing.
When I leave scale out it works fine, :
let path = [
{ x: 120, y: 0 },
{ x: 0, y: 568 },
{ x: 168, y: 714 },
{ x: 240, y: 627 },
{ x: 118, y: 411 }
];
but when I used scale it goes allover the place (I've tried other array layouts but this is the only one that will not cause an error).
let path = [
{ x: 120, y: 0 },
{ scale: 0.2, rotation: 10 },
{ x: 0, y: 568 },
{ x: 168, y: 714 },
{ scale: 5, rotation: 10 },
{ x: 240, y: 627 },
{ x: 118, y: 411 }
];
Cant find any examples of how to make this work and in docs paths either only use x and y or scale and rotation?
Any help would be gratefully appreciated.