- Home /
Question by
ZockerRocker · Apr 03, 2020 at 01:56 AM ·
movementglitching
Character glitching through steps
Hello! I tried out a simple script .. the problem ... i kinda glitch into steps, this also lets me fly realllyyyy high i was hoping someone could help me / spot the problem and fix it :C.
Vector3 moveInput = new Vector3(Input.GetAxis("Horizontal"), 0f, Input.GetAxis("Vertical")); Vec = Movespeed moveInput.normalized; rb.MovePosition(rb.position + Vec Time.deltaTime);
float movementx = Input.GetAxis("Vertical");
movementx *= Time.deltaTime;
float movementy = Input.GetAxis("Horizontal");
movementy *= Time.deltaTime;
this.transform.Translate(Movespeed * Vector3.forward * Input.GetAxis("Vertical"));
this.transform.Translate(Movespeed * Vector3.right * Input.GetAxis("Horizontal"));
Comment
Your answer