[SOLVED] Change models position or rotation via chrome console

Ok so I am fairly new to playcanvas and I am trying to do a very simple task of moving or rotating an entity via google chrome console.

I can find my entity easily enough using

var testModel= pc.app.root.findByName(“Tire”)

but I have found several postion and rotation in the returned information. I have tried to set the rotation several ways but can not figure out which one of the many postion values is the one to update?

https://playcanvas.com/project/504141/overview/tire-testing

thanks in advance for any help

Carter

You should probably read the User Manual, Tutorials and API reference. You’ll find all the position / rotation related methods here

https://developer.playcanvas.com/en/api/pc.Entity.html

TL:DR - setEulerAngles is one commonly used method to rotate.

These are also useful in the console:

https://developer.playcanvas.com/en/api/pc.Entity.html#translate
https://developer.playcanvas.com/en/api/pc.Entity.html#rotateLocal