Hi, I am trying to use a PVector that is used for a class "Rocket" within a class "particle". I have mate it Global (PVector = locR;), and it works fine in the Rocket class, but when I want the particle class to be located at the location of the rocket, I encounter a problem: If I define the particle's location randomly, by using "locP = new PVector(randomx, randomy), the whole thing works, but the location isn't what I need, as it is random. Now, when I write "locP = new PVector(locR)", it says that "PVector(PVector)" is not defined. Am I just writing this wrongly or do I have to go about the problem with a whole new mindset? Thanks in advance :D
how can I assign all the units in my array a common random number? In my case, these are particles that explote as a firework. I am using a PVector for the location (a variable), and once I type "location = new PVector(random, random);", the particles explode in a diagonal, because each particle picks its own random x- and y-value. What to do? :D