How to get the 360 gyro of device in entity?

I try rotate entity (not camera) with deviceOrientation. but only can do it with primary camera

Hi @Luis_Mb,

Can you post a sample project that reproduces your issue, to take a look?

Hi, @Leonidas. I refer to the option new project vr of playcanvas. I was trying to associate the webvr script with an entity. but it can only be done with a camera by default. :face_with_raised_eyebrow:

The webvr scripts are meant to work with a camera only. If you are looking to rotate an entity using deviceOrientation you can use JS directly inside any script of yours.

Here is a useful post for you: