コード例 #1
0
  protected void setTimeOffset(float ms) {
    float time = (ms - this.lastCollision) / 1000;

    if (!this.isStatic) {
      this.x = this.lastCollisionX + this.speedX * time;
      this.y = this.lastCollisionY + this.speedY * time;

      positionChanges();
    }

    this.timeOffset = ms;
  }