johnatm / itween

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

how to use a constant speed in "moveto" #99

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use function moveto to move a gameObject from pointA to pointB 
2. like iTween.MoveTo(gameObject, iTween.Hash("position", 
waypoints[currentWaypoint], "time", travelTime, "easytype", 
iTween.EaseType.linear, "oncomplete", "MoveToWaypoint", "delay", 3));

What is the expected output? What do you see instead?
i want a constant speed, but the gameObject move very slow when it is near 
pointB 

What version of the product are you using? On what operating system?
Unity 3.4.1/ iTween_2_0_45 /Win7

Please provide any additional information below.

Original issue reported on code.google.com by yustar...@sina.com on 8 Jan 2012 at 5:40

GoogleCodeExporter commented 8 years ago
"easytype" should be "easetype" in your MoveTo hash.

Original comment by colin.a....@gmail.com on 14 Feb 2012 at 5:53

GoogleCodeExporter commented 8 years ago
oh,thank you man, that was a stupid mistake..

Original comment by yustar...@gmail.com on 20 Feb 2012 at 2:44