Jump to content
Search Community

Get current position (percentage) of motionPath in onUpdate

Taylan test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

You know how tween starts from motionPath.start and moves to motionPath.end? I want to get that changing value during onUpdate. Even if there is no way to get that value as is maybe I can calculate it? Are there helper functions like getPositionInPath(object, path) / getPathLength(path)?

Link to comment
Share on other sites

3 minutes ago, Taylan said:

@GreenSock It helps big time :) Is there a documentation for ratio (and maybe other properties of this)?

Sure, have you poked around the docs? Everything should be there. Here's the direct link to the ratio property of Tween instances: 

https://greensock.com/docs/v3/GSAP/Tween/ratio

 

Happy tweening!

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...