移動量を変化させながら動かしたい場合は
変数を使います。
変数に算数や、数学の公式を入れることで、
教科書の動きが再現できます(動作させるシステムの座標系には注意が必要)
If you want an object’s movement to change over time, use variables to control its position, velocity, or acceleration.
By updating those variables with arithmetic calculations or mathematical formulas, you can reproduce various types of motion, such as gravity, jumping, or projectile movement.
Keep in mind that the exact behavior depends on the coordinate system of the engine or framework you are using.
次回