#ye sure so the character moving on its

1 messages · Page 1 of 1 (latest)

paper tulip
#

What is pCont? You want to rotate and move the same transform if you want your camera to rotate your player object.

#

You can give your camera script a target object, and drag the player object to that field

sand yew
#

pCont is my variable for my character controller

paper tulip
#

When you don't have the Camera script attached, is the player stationary?

sand yew
#

yep

paper tulip
#

Does the player's transform component in the inspector actually change when you move the mouse?

#

Or does it only look like it's moving

sand yew
#

ye the player's transform also changing

#

it only happens when im moving the camera up and down tho, but its all good when it comes rotating to left or right

#

im trying different codes, its all working but has the same problem for rotating the camera up and down

paper tulip
#

Can you screenshot this part of your project Edit -> Project Settings -> Input Manager -> Axes -> Vertical

sand yew
#

here

paper tulip
#

The only other things I can think of are:

  • Your colliders and rigidbodies are pushing each other trying to be in the same position
  • There is another script attached to the player object that is listening to the mouse movement
sand yew
#

hmm i dont have rigidboy in my player so i try your advice with the second one

paper tulip
#

Maybe do a find-all for Mouse Y in your ide

sand yew
#

ye sure will do, i will try to figure this out on my own, thank you for helping me ❤️