- Home /
Question by
looMeenin · Aug 05, 2014 at 04:38 AM ·
c#accelerationsmoothing
Is there a better way to move my character around the screen?
Right now I have this:
accel = Vector3.Lerp(accel, Input.acceleration, filter * Time.deltaTime);
dir = new Vector3(accel.x, 0);
transform.Translate(dir * speed * Time.deltaTime, 0);
I can't really tell if it's my camera motion or my character motion that is creating a jitter. The jitter is quite subtle but it's driving me absolutely mad.
visual-representation.png
(12.8 kB)
Comment
Help us out here, what are you moving, where is your camera etc.
I added a diagram that I made for another question that has since been worked out. Disregard the comment on the right side as I'm not using that approach anymore. Anyways, the character jumps onto platforms and when he reaches a new platform the camera moves up.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Charecter controlled by accelaration for iphone.. 0 Answers
Trigger player movement on touch 1 Answer