diff --git a/core/src/sagittarius/Arrow.java b/core/src/sagittarius/Arrow.java index 40b29b5..5ca8b49 100644 --- a/core/src/sagittarius/Arrow.java +++ b/core/src/sagittarius/Arrow.java @@ -108,15 +108,15 @@ class Arrow extends Entity { */ private void integrationVerlet(float deltaTime) { - this.acceleration = this.force.cpy(); + this.acceleration = this.force.cpy(); - this.position.x += deltaTime * ( this.velocity.x + deltaTime * this.acceleration.x / 2 ); - this.position.y += deltaTime * ( this.velocity.y + deltaTime * this.acceleration.y / 2 ); + this.position.x += deltaTime * ( this.velocity.x + deltaTime * this.acceleration.x / 2 ); + this.position.y += deltaTime * ( this.velocity.y + deltaTime * this.acceleration.y / 2 ); - this.force = computeForce(); + this.force = computeForce(); - this.velocity.x += deltaTime * ( this.acceleration.x + this.force.x ) / 2; - this.velocity.y += deltaTime * ( this.acceleration.y + this.force.y ) / 2; + this.velocity.x += deltaTime * ( this.acceleration.x + this.force.x ) / 2; + this.velocity.y += deltaTime * ( this.acceleration.y + this.force.y ) / 2; } // ---------- GRAPHICAL METHODs ----------