AT ALL. AAAARGH.
Not a single one of my cogs using vectors works properly.
Example:
This should slide all surfaces with the rainmat downward (vector rainvec is defined in JED as '(0/0/-1)') and even if that's wrong it should slide them somewhere!
tpos0-6 are all vectors with values in JED like (2.1/-16.825/2.275).
WHY DO NONE OF THESE WORK?!
Not a single one of my cogs using vectors works properly.
Example:
Code:
user1:
rain_chn=PlaySoundLocal(rain_snd, 0.7, 0, 0x1);
numSurfs = GetSurfaceCount();
for(x = 0; x < numSurfs; x = x + 1){
if(GetSurfaceMat(i) == rainmat) {
SetFaceGeoMode(x, 4);
rainfall=SlideSurface(x, rainvec, 1.5);
}
}
return;This should slide all surfaces with the rainmat downward (vector rainvec is defined in JED as '(0/0/-1)') and even if that's wrong it should slide them somewhere!
Code:
user0:
if(on==0) {
on=1;
for(i=0; i<7; i=i+2) tree0=CreateThingAtPos(tree, tsec, tpos0, '0 0 0');
for(i=1; i<7; i=i+2) tree0=CreateThingAtPos(tree, tsec, tpos0, '0 180 0');
}
return;
tpos0-6 are all vectors with values in JED like (2.1/-16.825/2.275).
WHY DO NONE OF THESE WORK?!
