- Home /
Question by
Daniel-Everland · Feb 26, 2013 at 07:32 PM ·
c#2dmovementavatar
Better way to move avatar than transform.position?
I'm currently moving my avatar by changing the transform.position a little bit each frame, however this causes a very big issue. If my avatar tries to walk into a wall, it'll start glitching has he technically enters the wall and get pushed out each frame. I'm wondering if there is a better way of moving an avatar without using a character controller?
Comment
Answer by $$anonymous$$ · Feb 26, 2013 at 09:00 PM
Try Transform.Translate It takes colliders into account, look here for a documentation.
Your answer
![](https://koobas.hobune.stream/wayback/20220613093444im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Making a bubble level (not a game but work tool) 1 Answer
Character doesn't jump repeatedly 1 Answer
Jump with Spacebarhit. Longjump with Spacebar Hold 0 Answers
Movement Problems PS4 Controller 0 Answers