In V1 I could get a reference to the current camera like this -
let p5canvas;
function setup() {
p5canvas = createCanvas(400, 400, WEBGL);
console.log(p5canvas._curCamera);
}
function draw() {
background(220);
}
but in V2 of p5.Canvas
the variable _curCamera
is undefined.
It is not ideal solution because the variable _curCamera
should be treated as a private variable but needs must.
So what I am looking for is a statement that will give me a reference to the current camera that is the same in V1 and V2.
Any help appreciated