- Home /
How to move and scale object with iTween without slowing down effect?
Answer by robertbu · Aug 05, 2014 at 02:10 PM
When specifying a movement, specify the easetype as 'linear'. You will find a list of the easetypes in this answer:
http://answers.unity3d.com/questions/53837/itween-list-of-easetypes.html
And the graphs of each easetype can be fond on this blog page on easing:
http://whydoidoit.com/2012/04/06/unity-curved-path-following-with-easing/
okm I want it to slow down but not so slowly ) Thanks!
script, where this parameter can be changed is adding itself to an object automatically till it's moving and disappears ) How to change this parameter?
I have no idea what you mean by this comment. Show me the code, and I can give you some feedback. I'm not completely sure I guessed right about your question either.
falling_rock.cs
using UnityEngine;
using System.Collections;
public class falling_rock : $$anonymous$$onoBehaviour {
// Use this for initialization
void Start () {
iTween.$$anonymous$$oveTo(gameObject, new Vector3(transform.position.x, 1.023f, transform.position.z), 5f);
}
// Update is called once per frame
void Update () {
}
}