equal
deleted
inserted
replaced
3343 begin |
3343 begin |
3344 nx.isNegative := not nx.isNegative; |
3344 nx.isNegative := not nx.isNegative; |
3345 ny.isNegative := not ny.isNegative; |
3345 ny.isNegative := not ny.isNegative; |
3346 end; |
3346 end; |
3347 //AddFileLog('poffs:'+cstr(poffs)+' noffs:'+cstr(noffs)+' pspeed:'+cstr(pspeed)+' nspeed:'+cstr(nspeed)); |
3347 //AddFileLog('poffs:'+cstr(poffs)+' noffs:'+cstr(noffs)+' pspeed:'+cstr(pspeed)+' nspeed:'+cstr(nspeed)); |
3348 iterator^.dX := -pspeed * conPortal^.dX + nspeed * nx; |
3348 iterator^.dX := -pspeed * conPortal^.dX - nspeed * nx; |
3349 iterator^.dY := -pspeed * conPortal^.dY + nspeed * ny; |
3349 iterator^.dY := -pspeed * conPortal^.dY - nspeed * ny; |
3350 if iterator^.Kind = gtCake then |
3350 if iterator^.Kind = gtCake then |
3351 poffs := poffs * _0_5; |
3351 poffs := poffs * _0_5; |
3352 iterator^.X := conPortal^.X + poffs * conPortal^.dX + noffs * nx; |
3352 iterator^.X := conPortal^.X + poffs * conPortal^.dX + noffs * nx; |
3353 iterator^.Y := conPortal^.Y + poffs * conPortal^.dY + noffs * ny; |
3353 iterator^.Y := conPortal^.Y + poffs * conPortal^.dY + noffs * ny; |
3354 |
3354 |