johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

Paths don't have even speed. #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Make a GO follow a path with uneven distance from one waypoint to the other.

What is the expected output? What do you see instead?
That the gameobjects speed would be constant.
You see the gameobject run faster if the waypoint has a bigger distance.

What version of the product are you using? On what operating system?
Windows 7 and iTween Version: 2.0.45

Please provide any additional information below.
http://unity3d.qatohost.com/questions/194671/itween-even-velocity.html

Original issue reported on code.google.com by pedrinho...@gmail.com on 2 Jan 2012 at 10:47

GoogleCodeExporter commented 8 years ago
I just want to bump this issue. It would be great if you could fix it in the 
next version :)

Original comment by zCh...@gmail.com on 20 Jan 2012 at 7:33

GoogleCodeExporter commented 8 years ago
Does version 2.0.45.1 fix this issue?  If not any idea when it will be fixed??? 
 Thanks.

Original comment by dak...@luminaryproductions.net on 28 Nov 2012 at 1:53

GoogleCodeExporter commented 8 years ago
Yea, this is a BIG bummer...too bad no one gives it attention.

Original comment by pedrinho...@gmail.com on 29 Nov 2012 at 11:54

GoogleCodeExporter commented 8 years ago
I know this is an older post, but its still an issue so hopefully this will 
help others.

I've found a workaround for this issue, and posted a thread on unity's forum.
http://forum.unity3d.com/threads/182693-Getting-constant-speed-from-iTween-(Solu
tion-Included-c-files-attached)

The post says it all, but in summary this will give you access to a 2 new 
methods of my c# class  PointOnNormalizedPath() and NormalOnNormalizedPath()

These methods take a float value (0-1) that will evaluate for the realworld 
distance of the path ie. 0.5 will be half way between start and end points 
regardless of point spacing.

Original comment by david.sl...@gmail.com on 28 May 2013 at 11:44