Hi guys,
I'm a little confused about how to store many points position in an array..
// initialise some mouvement
float va = ch('val');
@P = @P*(cos(@Time*f@va*@ptnum/@numpt));
// stick point to position to help understand
@P.y=0;
@P.x =1;
int nbTotal= @numpt;
vector mypoint = @ptnum;
vector pos[] ;
for (int i = 0; i<nbTotal-1; i++) {
// attribute position to an array
pos[i] = @P;
//float dist = distance(pos[i+1], pos[i]);
}
Thank you for helping.
Naim.