- Home /
Friction 0 material not working with Transform.Translate
I'm creating a platform game and I'm doing an ice part, so I put the friction to zero and checked it. but, to move, I used Transform.Translate and It seems to not work well, even when I'm moving left it goes right... I tried changing the rotation of the ground and that change the skating to right, so that is why I'm sure it is caused by the Transform.Translate.
does any body has an answer? this is my moving code:
transform.Translate(Vector3.right * direction * speed * Time.deltaTime);
// direction can be -1 for left or 1 for right
Comment