@Override
	public void update() {
		if (this.bodyA == null || this.bodyB == null) {
			return;
		}
		
		Vector2 d = new Vector2(this.poseA.getPosX() - this.poseB.getPosX(), this.poseA.getPosY() - this.poseB.getPosY());
		double x = this.distance - d.length();
		d.normalize();
		d.scale(this.springConstant * x);
		
		this.bodyA.applyForce(d.x, d.y, 0, 0);
		this.bodyB.applyForce(-d.x, -d.y, 0, 0);
	}