Create movable camera first person

Oh !

by user 191204280198234122

Its work !

by user 191204280198234122

Thanks you very much

by user 191204280198234122

youre the best!!!

by user 191204280198234122

Nice! Glad you got it to work, sorry it took a while to understand the problem

No problem !
When I finish my project I share you the product link and if you want any code block say me :slightly_smiling_face:

by user 191204280198234122

following

by user 534547469992853534

Hey where do I find the code for the third person controller sample?

by user 796279605396373504

This scene here

is part of the samples, you can just open the Samples window and install them from there.

Hey unity noob here,
I found the code in Package/Runtime of the repo GitHub - needle-tools/needle-engine-samples: Live: https://engine.needle.tools/samples 🌵 Needle Engine sample scenes - use as examples and as a reference for learning 😊

But I don’t know how to install them in unity. I created a new project, and dragged and dropped the package folder into the file browser section of unity. What should I do next?

by user 796279605396373504

Hey, there’s no need to do this manually. Just go to here:
image.png

And there you can install them if your project fulfills the requirements.

Oh awesome!
Will try

by user 796279605396373504

I was using this script, however I am wondering where the script is suppose to attach to? The movement is working but the camera seems to be off and flying everywhere. The hierachy I am working with is: made a player empty (script attach to empty) with the playerbody and camera inside it.
image.png

by user 204651044183998464

@HueN I have it attached to the Player. if It helps here is a picture of what is inside my Player object.

by user 377826570385227778

is the camera object under this player object? or they are separate?

by user 204651044183998464

It is under the player object

by user 377826570385227778

Working well! Appreciated the help!

by user 204651044183998464

I have a question regarding this part of the code. I have added the code into my script. However, it seems like it required a user gesture? Is there anyway to bypass this requirement?


image.png

by user 204651044183998464

Yes, call this code on the first click (e.g. user clicks into the window) and not in start()