fix: indentation Arrow.java
This commit is contained in:
parent
020c408250
commit
2941bcef47
|
@ -108,15 +108,15 @@ class Arrow extends Entity {
|
||||||
*/
|
*/
|
||||||
private void integrationVerlet(float deltaTime) {
|
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.x += deltaTime * ( this.velocity.x + deltaTime * this.acceleration.x / 2 );
|
||||||
this.position.y += deltaTime * ( this.velocity.y + deltaTime * this.acceleration.y / 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.x += deltaTime * ( this.acceleration.x + this.force.x ) / 2;
|
||||||
this.velocity.y += deltaTime * ( this.acceleration.y + this.force.y ) / 2;
|
this.velocity.y += deltaTime * ( this.acceleration.y + this.force.y ) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------- GRAPHICAL METHODs ----------
|
// ---------- GRAPHICAL METHODs ----------
|
||||||
|
|
Loading…
Reference in a new issue