small help needed on fps control

hii,

when i move my mouse, the camera also rotates in fps, i dont want that…

i only want what is being done from keys w,a,s,d and arrows…camera should not move with mouse, what to do in this case ??

secondly i want my fps not to collide with any any object in my scene, and i dont want to change the properties of every object, rather i want to do something with my fps…what to do in this case…

thanks in advance for ur help

Um I’m a little confused as to why you would do this (unless you were cloning Doom or Wolfenstein) but you could set up the inputs in your unity settings under
Edit/Project Settings/Input
Or write your own script that changes camera rotation based directly on specific key inputs.

as for collisions all objects in your scene need colliders to put it simply no other way round it

what do i do here with mouse x and mouse y ??? plz guide

post the code and be sure to use code tags please
I’ll look at it and see

Take out the scripts that contains rotate? Maybe. Yeah like what That Homeless Guy said, need some samples to see.

i think this script attached to fps has d code -