Quantcast
Channel: Questions in topic: "curved path"
Viewing all articles
Browse latest Browse all 116

Move object on curve with same angle

$
0
0
I am trying to move my object on curve path that is simple animation not any physics implementation. I have already working of object on curve based path but can't able to find same movement angle. For movement of game object I used iTween and code for that are represented as under. iTween.MoveTo(gameObject,iTween.Hash("path",iTweenPath.GetPath("FishDeath"),"time",2f)); But how to apply angle correct angle to game object not static rotation angle 0?? Following image represent my path ![alt text][1] [1]: /storage/temp/28628-screenshot+2014-07-03+23.05.56.png At present movement on that path is possible but I can't able to calculate angle for game object.

Viewing all articles
Browse latest Browse all 116

Trending Articles