We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I have a class that is passed a PVector in the constructor, which it then assigns to a variable using the .copy() function. However, in the console I get this error: this.velocity = _velocity.copy(); ^^^^ The method copy() is undefined for the type PVector
Can anyone help?
Thanks
Answers
Have a look at this post regarding PVector objects:
https://forum.processing.org/two/discussion/7555/copy-one-pvector-into-another
Kf