stalgiag / p5.xr

a library that helps turn p5.js sketches into immersive experiences using WebXR
GNU Lesser General Public License v2.1
117 stars 25 forks source link

Question - How to get info like rotation of device info, and extend draw distance etc. #193

Open RedHenDev opened 1 year ago

RedHenDev commented 1 year ago

Nature of issue?

Which area does this problem relate to?

New feature details:

Perhaps a section in documents and, or, an example project in which it is shown how to get device rotation (pose?) and how to change the properties of the draw distance etc. ?

I've looked through the code and documentation but can't find a solution (have tried referencing p5xrInput etc. but receive nothing but reference errors).

Thank you for an absolutely brilliant project, and for any help with my issue -- apologies if I've missed the obvious.

stalgiag commented 1 year ago

Hi! thanks for the issue and the helpful suggestions. I can add an example for device rotation. For the draw distance, this is set upstream by the WEBGL renderer when a camera is created but perhaps we can expose a setting for changing the near/far settings.