KeyDown = Move Object, float

Hiho i have this line of script:

transform.position = Vector3.Lerp(transform.position ,transform.position + new Vector3(-0.5,0,0), 1);

i know -0.5 here is wrong, only i need float X
what i must edit for floating objects ?

Iy you want to tell the compiler to use a floating value you have to append f to the number:

Vector3(-0.5f,0,0)

Omg… i must go sleep :smile: haha, ty…