Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

Does the PVector.add() - Method not work in the Android Mode?

$
0
0

Hello Processing community,

when I'm trying to run this code in Android mode, i get a error message:

PVector Vec;
void setup(){
  Vec = new PVector(0, 0);
}

void draw(){
  Vec.add(1, 1);
}

In the Java mode it works just fine. Is is a bug or do i have to redownload Processing? I have already redownloaded the Android mode. I know that i could just use Vec.x += 1; Vec.y += 1;, but I thought I would tell you guys, because the problem isn't listed here: android.processing.org/reference/gone.html

Sorry for my bad English and thanks for the answers


Viewing all articles
Browse latest Browse all 941

Trending Articles