Make ngrav negative, fixes #133
This commit is contained in:
parent
93afe0a1ea
commit
7ae2369dda
@ -11,7 +11,7 @@ Tool_NGrv::Tool_NGrv()
|
||||
|
||||
int Tool_NGrv::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength)
|
||||
{
|
||||
sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] += 0.03f*strength;
|
||||
sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] -= 0.03f*strength;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user