How to properly make animation from a Class?

But this does only mean that the return type addEventListener() is undefined. What’s the problem with that?

the loop does not triggers

i just made it, from you Dive example hahaha,that was soo easy .
I lost so much time to figure it out why it did not work and relized that i had not locked PointerLockControls …