When I try using the command AddForce, the script isn’t reacting to the numbers I put in the () after. If I am not mistaken, the numbers within the parenthesis will change color when all is running smoothly. I may be formatting this incorrectly, but when I try using the command
if (Input.GetKey(“w”))
{
rb.AddForce(x: 0, y: 0, z: 500*Time.deltaTime);
}
it doesn’t work after saving the code and reentering the game to test it. I’m not sure if this is a problem with the input, code or script but any help is welcome.