- Home /
This question was
closed Aug 08, 2021 at 05:48 PM by
ebraama06.
Question by
ebraama06 · Jul 31, 2021 at 09:06 PM ·
transform.positiontransform.translate
player movement is stuttering.
private void Update()
{
float move = Input.GetAxis("Horizontal") * speed;
move *= Time.deltaTime;
transform.Translate(new Vector2 (move ,0), Space.World);
}
player movement is stuttering and with every press in play button in unity sometimes burly noticeable and sometimes it's quit strong stuttering.
Comment
Best Answer
Answer by Alexx019 · Aug 01, 2021 at 09:38 AM
you should add a Rigidbody to your player, and either set its velocity to your move vector or use .AddForce(move)
this should make it smoother
Follow this Question
Related Questions
Why is rotation offset 1 Answer
transform.Translate() effect is being reverted 0 Answers
How to move an object smoothly while in a Coroutine / Ienumerator? 3 Answers
lookat gameobject moved -> 0 Answers