-
Getting to grips with velocity.
Hi all.
To help explain, I have a property that is being animated with an expression. However, I want to amend the expression so that it can use it’s velocity at a certain time to also affect it. As it is an expression that is looking at itself, velocityAtTime won’t help me.
As a test I added an expression that created two variables, (A) and (B); (A) being the value at time(t – 0.0001) and (B) the value at time(t). It then works out the velocity with a simple bit of code along these lines: (B – A) / 0.0001
To then test if this was giving me correct results, I then created another layer with an expression to look at the same property that used velocityAtTime(t – 0.0001). Whilst the results are close, they are not the same. Would anybody know why?
Here is a link to a project file to help explain my issue:
12233_velocitytest.aep.zip
Sorry, there were no replies found.