I want to create a character controller that doesn’t use the mouse for camera rotation, but the a d keys.
This is a first person situation. So far, the camera rotation works, but the w s keys seem to be reversed for some reason and when you do go forward, you end up on your face, lol.
Can someone point me in the right direction? Most tutorials use the mouselook, which makes it harder to figure out. Thanks!
public float Walkspeed=10f;
float MoveVertical;
void Update ()
{
float translation = Input.GetAxis ("Vertical") * Walkspeed;
translation *= Time.deltaTime;
transform.Translate (0, 0, translation);
}
I have a capsule collider, rigid body(freeze rotation x,y,z).
It’s almost like I need a third person controller on a first person object.