So, when i put the Player Speed on 1500, in unity it feels great to play. When i build the game and install it on my Phone tough, the Player goes nuts. Its so fast it even goes throug walls. I already multiply the movement with Time.deltaTime. How can i fix this?
Heres my Code:
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
[SerializeField] private FixedJoystick joystick;
[SerializeField] private Rigidbody2D rigidbody;
[SerializeField] private float playerSpeed;
// Update is called once per frame
void Update()
{
Vector2 moveInput = joystick.Direction * playerSpeed * Time.deltaTime;
rigidbody.velocity = moveInput;
}
}