Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippet of the ACESInteractiveParticleWall : https://github.com/acesinc/ACESInteractiveParticleWall
Leap.loop({
hand: function (hand) {
var pos = hand.screenPosition();
if (pJS) {
pJS.interactivity.mouse.pos_x = pos[0] + 100;
pJS.interactivity.mouse.pos_y = pos[1] + 350;
if (pJS.retina) {
pJS.interactivity.mouse.pos_x *= pJS.canvas.pxratio;
pJS.interactivity.mouse.pos_y *= pJS.canvas.pxratio;
}
pJS.interactivity.status = 'mousemove';
}
}
}).use('screenPosition', {scale: 0.70});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.