so I am using the player prefab.
and I have a script so that when I touch the touchpad it moves the player.
the moving works fine except my hands lag behind when i move
private void Start()
{
Char = transform.GetComponent<CharacterController>();
}
public void Update()
{
if (IsGrounded())
{
Vel = (Physics.gravity.normalized * .1f);
}
Vector3 MoveDirection = Cam.TransformDirection(new Vector3(TouchPadInput.axis.x, 0, TouchPadInput.axis.y));
Char.center = new Vector3(Cam.localPosition.x, Char.center.y, Cam.localPosition.z);
Char.Move(Speed * Time.deltaTime * Vector3.ProjectOnPlane(MoveDirection,Vector3.up));
Vel += Physics.gravity * (Time.deltaTime * Time.deltaTime);
Char.Move(Vel);
}
}