So I understand that transition.from() is basically a swapping of the end point and start point and calling transition.to() within itself.
However, this means that when delta=true, cranky things happen.
For eg.,
if the current obj.x is 200, and I enable delta = true and assign params.x = 150 for transition.from(), I’d expect the transition to start from 350 and end at 200. But because of how the simulator function is coded, which I presume is as follows:
[lua]function from(obj,params)
temp = obj.x
obj.x = params.x
params.x = temp
to(obj,params) – with params.delta == true
end[/lua]
We end up having the object transit from obj.x == 150 to 350 because the starting point was changed to 150 and the params.x was changed to 200 with delta == true. [import]uid: 108204 topic_id: 27894 reply_id: 327894[/import]