Time.deltaTime wont do anything?

i put it in like this:

rb.AddForce(2, 0, 0 * Time.deltaTime);

but it does nothing, and the * Time.deltaTime has no colours, why?

this is what the whole thing looks like

That line of code doesn’t do anything because AddForce needs a Vector2 and then a force within the brackets, but you’ve only given it some integers. Also place the line into void FixedUpdate as you are dealing with physics.


To fix the no colours problem, make sure that you are not using ‘Miscellaneous Files’ but instead ‘Assembly-CSharp’.


Let me know if you have any more questions.