How do I make a head bob similar to DOOM?

Hey @OMN1B,

Most of the ‘transform’ methods Unity has, like Translate, Rotate and others do have an equivalent in PlayCanvas/JS. For example:

this.entity.rotate(5, 5, 5); // Rotates the object
this.entity.translate(20, 20, 0); // Moves the object

this.entity.setPosition(0, 0, 0); // Sets the position of the object

You can take a look at the User Manual to see the similar methods offered by PlayCanvas.