First-person controller
Write a PlayCanvas ESM script (a class extending Script) for a first-person controller in my space facts game: WASD movement with a rigidbody, mouse look with pointer lock, and jumping. Explain the entity and component setup in the Editor.