I would like to zoom with the two fingers, but I can’t do this, l have tried to create a button to go increasing the zoom. but it does not work because the var value is reseting I guess. This is my code button:
parent.on(“pointerenter”, (e) => {
// Runs when pointerenter occurs on the parent node
// The argument e contains useful info about this event:
// https://docs.zap.works/studio/scripting/reference/object/events/pointerenter/
var cameraGroup = symbol.nodes.cameraGroup;
var zoom = 0;
var somaZoom;
somaZoom = zoom + -1;
cameraGroup.position([0,0,-3.3 + somaZoom]);
});
This buttom zoom it is just another solution that I tried, but it’s not really what I want. What I want is the zoom with the fingers.