I am trying to make a plane move according to the hand movement of the user, but I do not want the z position to change. I only want the x and y positions of the plane to change according to the position of the users' hand. Is that possible?
const Diagnostics = require('Diagnostics');
const Scene = require('Scene');
const HandTracking = require('HandTracking');
const directionalLight = Scene.root.find('directionalLight0');
const directionalLightIntensity = directionalLight.intensity;
const hand = HandTracking.hand(0);
const plane = Scene.root.find('plane0');
plane.transform = hand.cameraTransform;