I'm using Vector2d to represent location, velocity, and acceleration, and accel changes vel and vel changes position, but the code that's meant to change position by velocity doesn't seem to be working.
problematic method below, full class in another message as well as github link
public static void physics() {
players.forEach(p -> {
p.stopYMomentum = false;
p.limitVel();
p.lastPos = new Vector2d(p.currPos);
p.currPos = p.currPos.add(p.vel); // TODO - THIS LINE DOESNT WORK
p.vel.add(p.acc);
p.acc.y = ((p.acc.y - p.gravC) * 0.85) + p.gravC; // normalize vertical acceleration towards gravC
p.acc.x *= 0.95; // normalize horizontal acceleration to zero
p.vel.mul(0.99f);
boundaries();
});
}