Jump to content

Physics Explained Through a Video Game/Calculating Displacement

From Wikibooks, open books for an open world
Physics Explained Through a Video Game
 ← Displacement Calculating Displacement Speed and Average Velocity → 
[1]

Topic 1.2 - Calculating Displacement

[edit | edit source]

We can calculate for the exact displacement of an object in a particular direction by considering the final and initial positions of an object in that direction. Then, we subtract the initial position value from the final position value to get the change in position, which is displacement.

This allows for us to quantitatively look at the change in an object's position, which will later make it possible to make clearer predictions about objects in motion.

Formula for displacement in the X (horizontal) direction: d→x=xafter−xbefore
Formula for displacement in the Y (vertical) direction: d→y=yafter−ybefore
Players on "Royal Curse" by GayfishDeluxe with an overlay of a horizontal and a vertical displacement component being added. The task is to calculate the net displacement.
If we have a displacement that has both a vertical and a horizontal component, we can add these displacement vectors together to get the net displacement vector.

Question 1: Suppose that there's an in-game situation where the player Hello (colored white) wants to knock Jensen (colored grey) off the board. At a particular time in the game, Hello needs to have a d→x of d→horizontal=6𝗆𝖾𝗍𝖾𝗋𝗌 and a d→y of d→vertical=8𝗆𝖾𝗍𝖾𝗋𝗌 in order to reach Jensen. How far does Hello need to travel in order to reach Jensen, assuming that Jensen is at the same spot when Hello arrives?

Solution:
In order to calculate how far Hello needs to travel, we need to find d→net. Using the image on the right, we can see that if we were to draw d→vertical from where d→horizontal ends, we form a right angle between these two displacement components. Also, we know that because the net displacement is the shortest path between two points, d→net must be a line directly connecting Hello to Jensen.

Thus, we can form a right angle triangle that is outlined by d→net and its components. Because of the Pythagorean Theorem where a2+b2=c2 where a and b are components and c is d→net, we can show that:

a2+b2=c2⟹(d→x)2+(d→y)2=(d→net)2

⟹(d→horizontal)2+(d→vertical)2=(d→net)2

⟹d→net=±(d→horizontal)2+(d→vertical)2

⟹d→net=±(6𝗆𝖾𝗍𝖾𝗋𝗌)2+(8𝗆𝖾𝗍𝖾𝗋𝗌)2=±100meters=±10meters

Note that any displacement can either be positive or negative, depending on what is convenient for the situation. In this case, because we are looking for the magnitude of distance between Hello and Jensen, we can allow for d→net to be positive such that: d→net=10meters (using 1 significant figure).

  1. ↑ "Significant Figures". Science Olympiad Student Center. April 3, 2014. Retrieved July 26, 2024.