How to lock mouse and look around using mouse

My script editor https://playcanvas.com/editor/code/685378?tabs=30745617

Use this tutorial: https://developer.playcanvas.com/en/tutorials/first-person-movement/

also how do I add gravity to pull the player down after a jump

You need to import ammo.

whats ammo?

Click on the Capsule, and you’ll find a thing that says IMPORT AMMO. Click on the button.

If you really need help, you can add me to the project.

then what

Ok, can you add me to the project? I’ll be able to explain quicker using the chat feature on the editor.

how do i do that

1. Click on EDIT

2. Type in dev01 and click SEND
image

3. Don’t forget to make me ADMIN
image