
window에 있는 p5 객체 사용
const dot = window.p5.Vector.dot(this.mPos, this.targetPos);
https://stackoverflow.com/questions/66540987/p5-vector-subraction-sub-returning-error
https://github.com/Gherciu/react-p5/issues/78
https://github.com/Gherciu/react-p5/issues/52