I just want to know how to make a first person camera for the roll-a-ball tutorial, im a beginner to coding and i have been searching for a decent amount of time for a solution to this problem but nothing is working. or atleast im not understanding it. sorry that this doesnt have proper grammer but im just tired at this point so please.
i attached my scripts if looking at them could help you help me.
What is the problem, exactly. The scripts don’t work at all or what?
Also, it is better to post the scripts on the forum with code tags because most people don’t like downloading files onto their computer.
i dont yet understand how exactly do you want your fps camera to behave?
the simplest way to make a fps camera is to put the camera as the child of the player object. but in this case if the ball rolls forward the camera also rotates with it…
take a look at 0:15
so when you say you want a first person camera, where exactly do you to place your camera and how should it behave? please explain yourself a little more if you can…
My bad about the attachments i don’t know what you mean by posting with code tags. The problem is i want to switch between 3 different cameras and the first person one works and moves left and right with Q and E but i want to make it so that when you turn the camera and move straight you move straight like, relative to the camera instead of seeming like your moving left when you move straight. if that makes sense. Basically, when i turn the camera 90 degrees to the right and press the up arrow or W it looks like I’m moving to the left.
If it moves to the left, you are in world coordinates. What you want is to use the camera transform. So up = transform.forward. right = transform.right, left = transform.left, back = -transform.forward.
There is a thread about code tags at the start of this forum.