xoxoxoxo Posted October 20, 2020 Share Posted October 20, 2020 I have a ball that bounces when it reaches the edges of viewport, I have this working with modifiers. However, I'm trying to do this infinitely which I have tried by calling the tween function again but visually there's a slight pause when it restarts. How can I fix this? An approach I thought of was to make my translate values longer and adjust duration but this wouldn't frequently touch the edge of the viewports. See the Pen QWEKyMQ?editors=0010 by nullhoooook (@nullhoooook) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted October 20, 2020 Share Posted October 20, 2020 There is no real pause here. it has to do with your easing - it's super slow at the end. You could change the easing so that's not the case or make the duration shorter to it's less perceivable. Link to comment Share on other sites More sharing options...
xoxoxoxo Posted October 20, 2020 Author Share Posted October 20, 2020 Thnx, it worked! Link to comment Share on other sites More sharing options...
xoxoxoxo Posted October 21, 2020 Author Share Posted October 21, 2020 @ZachSaucier I have just discovered the InertiaPlugin and was wondering if i can pair it with what i'm trying to achieve in the demo? Basically the ball constantly moves and when it hits the viewport walls it bounces off. The solution I have going, it sporadically restarts without hitting any edges. Link to comment Share on other sites More sharing options...
ZachSaucier Posted October 21, 2020 Share Posted October 21, 2020 Sorry, I don't know what you expect us to help with given that information. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now