1
DOTween & DOTween Pro / Re: Two DOJumps in a sequence
« on: August 13, 2015, 02:19:47 PM »
Ok, nevermind, I ended up writing my own tween instead of using DOJump.
Anyway, I had a look at the source code and I think there are several issues with the DOJump method:
First of all, you should be setting offsetYSet to true in OnUpdate(). And you should probably move " float startPosY = target.position.y;" into OnUpdate(), so that the offset gets computed from the current position of the object instead of the object's position at the time of the DOJump() call - maybe that would solve the issue with chaining jumps with different endValue.y's?
Anyway, I had a look at the source code and I think there are several issues with the DOJump method:
First of all, you should be setting offsetYSet to true in OnUpdate(). And you should probably move " float startPosY = target.position.y;" into OnUpdate(), so that the offset gets computed from the current position of the object instead of the object's position at the time of the DOJump() call - maybe that would solve the issue with chaining jumps with different endValue.y's?