Beads animation 3

no,also have question

the scale of redBall not in the range(0,3),
and I have set the angle:0,onTop:true but ...

onTop is for the path - so set that to false.

The inputMin and inputMax should be based on the pathBead.width and not path.length. It looks like it is absolute as well and note the regX of the pathBead is in the center so the setting would be:

inputMin: pathBead.x-pathBead.width/2,
inputMax: pathBead.y+pathBead.width/2,

It looks like the orientation is not right as it loops. It starts right. So that is probably a bug in ZIM for this arrangement. @pettis did some work in there... it is a tricky thing, but perhaps we can look at it soon.


path change a little,the bead angle=0 no problem

Ah... it looks like it is 0 angle issue or something like that. So... are you good for now with this?


image

when beads animate pause,i change beads path,beads not on path.

might have to beads.resize() after altering beads path programatically.

thanks,solved

    function beadResizeFun(target){
        console.log(`isWait=${isWait}`)
        if(isWait==1)pathBeadB.resize()
    }
...
animateCall:beadResizeFun
1 Like