Answer the question
In order to leave comments, you need to log in
Why does the character move jerkily?
public GameObject player;
public GameObject createObj;
public Rigidbody2D rigidbody2D;
public float speed = 10f;
private void Start()
{
rigidbody2D = player.GetComponent<Rigidbody2D>();
}
private void Update()
{
rigidbody2D.velocity = new Vector2(1 * speed, rigidbody2D.velocity.y);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question