FPS Look problem

i am trying to make a simple FPS in blender
i was testing freelook and movement but i want to restrain the player to float up in the air
how can i make it stick to the ground plane
i will include the blend
i tried creating a cube and parenting it to the camera but it didn’t work
if you know how to solve this problem please do so


FPS Test.blend (1.71 MB)

Try this: FPS Test2.blend (1.77 MB)