nilabja1312 / java-universal-tween-engine

Automatically exported from code.google.com/p/java-universal-tween-engine
0 stars 0 forks source link

Tweens with a constant velocity instead of constant time #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Did you ever think to have tweens with a constant velocity instead of constant 
time?

I suppose that will be difficult using ease or way points, but just linear 
tweens will be very useful.
Also won't be obvious with combined attributes: what does "velocity" means in 
these cases?.  This can be solved implementing the "velocity definition" in 
TweenAccessors.

I can help with it, just need some inputs.

Original issue reported on code.google.com by paumi...@gmail.com on 10 Feb 2013 at 9:32

GoogleCodeExporter commented 9 years ago
maybe some clarifications needed:

- I wanted to say speed, not velocity, sorry about my english -in catalan there 
are only one word for that ;)
-If I know the end point, initial point and desired speed I can calculate time, 
so, why this enhacement? It only take sense if destination is unknown, infinite 
or change over time.
-Examples, all about position (x,y) because I think its easy to imagine:
  -Go in that direction at that speed for undetermined time, or unknow at the begining of tween
  -Follow the cursor or the hero at that speed, always or just to reach it

Original comment by paumi...@gmail.com on 10 Feb 2013 at 11:45