Famous / engine

MIT License
1.75k stars 250 forks source link

fix: Properly update position in callback function #475

Open alexanderGugel opened 9 years ago

alexanderGugel commented 9 years ago

Resolves #474

Example:

var position = new Position(parent0);
position.set(100, 100, 100, {
    duration: 500,
    curve: 'inOutExpo'
}, function () {
    position.set(0, 0, 0);
});