[SOLVED] Cannot get first person WASD movement to work

I have used the codes from the first person movement tutorial but I cannot move player. The camera allows me to look around but I cannot simulate walking movements.

https://playcanvas.com/editor/scene/896782

I had the same problem, just add the library to your project.
image

I will try that!

You can also use this project as a base https://playcanvas.com/project/405842 it is the same one used in the tutorial https://developer.playcanvas.com/en/tutorials/first-person-movement/

This is what i used but it still won’t work

I tried the import ammo but now it continuously looks down, still no movement with WASD

Hi @Scarscruffy78,

You need to import Ammo as @ViniciusFXavier correctly suggested and also add a collision and rigidbody component to your floor entity:

Thank you I will see what I can do!

1 Like

https://playcanvas.com/project/674963/overview/test-1
https://playcanvas.com/editor/scene/896761

Thank you it worked!

1 Like