PlayCanvas’ equivalent to gameObject.
Hi @Marks! You can access the entity by using this.entity
in the script that is attached to the entity. For example, to rotate the entity inside the update function, you can use the line below.
this.entity.rotateLocal(0, 1, 0);
Thanks! Question solved.