rb.AddForce(movement * speed);

using UnityEngine;

void Start() { rb = GetComponent<Rigidbody>(); }

private Rigidbody rb;