You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the PathFollower I found that short duration tweens did not end where I expected them. They feel short, for example, only reaching 90% of their target destination. Longer duration generally got nearer the target, but not the exact target.
You'll see the ball does not hit 400x400, and depending on luck seems to hit various spots between 350 and 400.
Additional Information
Looking at the src/gameobjects/components/PathFollower.js pathUpdate() checks if the tween is PLAYING_FORWARD, and if not, it just returns. In my example, the last time pathUpdate is called where tween is PLAYING_FORWARD, the value returned by tween.getValue() is less than 1.0.
A suggested solution, is to allow pathUpdate() to do one final update after the tween transitions to COMPLETED. Thoughts?
The text was updated successfully, but these errors were encountered:
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
When using the PathFollower I found that short duration tweens did not end where I expected them. They feel short, for example, only reaching 90% of their target destination. Longer duration generally got nearer the target, but not the exact target.
Example Test Code
Full example on https://codepen.io/thebramp/pen/ExaLWyR
You'll see the ball does not hit 400x400, and depending on luck seems to hit various spots between 350 and 400.
Additional Information
Looking at the
src/gameobjects/components/PathFollower.js
pathUpdate() checks if the tween is PLAYING_FORWARD, and if not, it just returns. In my example, the last time pathUpdate is called where tween is PLAYING_FORWARD, the value returned by tween.getValue() is less than 1.0.A suggested solution, is to allow pathUpdate() to do one final update after the tween transitions to COMPLETED. Thoughts?
The text was updated successfully, but these errors were encountered: