We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi so in instance mode with instance p= new p5(..), I can make a vector v1 = p.createVector() and can then call v1.dist(v2) but I cannot call p5.Vector.dist(v1,v2) nor p.p5.Vector. This may be a general js question but I was wondering how to call p5.Vector functions like angleBetween() or random2D() etc.
Answers
http://p5js.SketchPad.cc/sp/pad/view/ro.Cp2wk8n$MWzH4r/latest
https://forum.Processing.org/two/discussions/tagged?Tag=#instance+mode
"index.html":
"sketch.js":