P1kachu presents: The Physics of Geometry Dash. Part 1: Cube
Jun 4, 2017 3:54:01 GMT -5
Mechanguis, WillFlame, and 17 more like this

### Post by [ℙ][✓] P1kachu on Jun 4, 2017 3:54:01 GMT -5

Its been a long time since I made my last "P1kachu presents..."

In this series, I'll be talking about how the Physics work in the World of Geometry Dash.

It will cover how each different gamemode works, as well as orbs, pads, and other stuff in the game.

First off, we will talk about how the gravity works for the Cube.

In each gamemode, the gravity is different. And not only that, gravity acts in some weird way.

We will just assume that the speed is just 1x in the meantime. We will talk about other speeds in the future parts.

Here, we will talk about everything when the cube is in normal gravity. If we will want inverse gravity, just simply multiply everything by -1.

Velocities will be expressed in "units", where:

1 unit = (1 block) / (time taken to cover 1 block)

A cube has two "speeds": The X-Speed, and the Y-Speed.

The X-Speed of the cube is simply the rate at which the cube goes forward. Its value is just simply 1 unit. It can only be changed by Speed Portals.

The Y-Speed of the cube is the rate at which the cube goes up. At default, it is just set to 0. But it will change whenever the cube jumps, falls down, hit by a pad, etc. If it is positive, then the cube is going up. If it is negative, then the cube is going down.

Note that the Y-Speed can only range values of at least -2.6.

And also, when the cube hits a "floor", then its Y-Speed will instantly change to 0.

So, this is how gravity is calculated in the game. The gravity is the acceleration in which the cube goes down, if no platform is below it.

The gravity is dependent on the Y-Speed of the cube. It is given from the following formula:

Here is an example. Let's say the cube fell from a block 10 blocks away from the ground.

Then, the way how the cube falls will look something like this:

The cube starts at the position where its 10 blocks from the ground.

The blue part represents the portion where gravity is -0.876 units. While the red part represents where gravity is 0, gravity doesn't affect the cube.

Notice how the blue part is a parabola, while the red part is just linear.

The cube initially starts falling with an acceleration, until after around 3 blocks have passed, the cube just falls at a constant rate.

Now, this is what it looks like if a cube got off a steep slope:

The black lines is the slope where the cube came from, while blue and red is what looks like when the cube falls.

Now, for the next part, which is how the cube jumps.

Whenever the screen is tapped, the cube's Y-Speed changes to 1.94.

This graph shows what happens when the cube jumps:

From this, we can see that cube can jump as high as 2.148 blocks upwards, before it proceeds falling down.

Now, if the cube's size is Mini, then its Y-Speed would just be 1.41 instead. Which makes it go up at most 1.633 blocks.

Finally, we will have the Orbs and Pads. What these do, is only change the Y-speed in some way.

For example, when the cube touches a yellow pad, its Y-Speed changes to 2.774.

Here is a table showing how each pad and orb changes the Y-Speed:

Note that for Dash orbs, the Y-Speed will always be set to 0 no matter which angle you go from.

This means that if you released a dash orb, the cube won't be affected by the momentum from it, causing it to just suddenly fall if the angle was upwards, and just suddenly "bounce" up a bit if the angle was downwards.

*Asterisks beside the number represent that the gravity will also be reversed.

For example, this is what it looks like when a cube touches a yellow pad, then presses a pink orb:

The yellow curve represents the path the cube goes through after the yellow pad was touched, while purple curve represents the path when the pink orb is pressed.

Notice that if the cube presses the pink orb, it stops going through the path of the first pad and moving on to the next one.

Also, notice that the parabolas are just identical to each other. This is because the acceleration is always -0.876, so the leading coefficient for the equations of each parabola can only be -0.438.

That is basically everything you need to know about the Cube for now. I will cover other gamemodes in the next parts.

For now, I'm not completely sure on how Slopes behave. Since the Y-Speeds seem different when sliding on it, and when going on the tip of it.

In this series, I'll be talking about how the Physics work in the World of Geometry Dash.

It will cover how each different gamemode works, as well as orbs, pads, and other stuff in the game.

**Gravity**First off, we will talk about how the gravity works for the Cube.

In each gamemode, the gravity is different. And not only that, gravity acts in some weird way.

We will just assume that the speed is just 1x in the meantime. We will talk about other speeds in the future parts.

Here, we will talk about everything when the cube is in normal gravity. If we will want inverse gravity, just simply multiply everything by -1.

Velocities will be expressed in "units", where:

1 unit = (1 block) / (time taken to cover 1 block)

A cube has two "speeds": The X-Speed, and the Y-Speed.

The X-Speed of the cube is simply the rate at which the cube goes forward. Its value is just simply 1 unit. It can only be changed by Speed Portals.

The Y-Speed of the cube is the rate at which the cube goes up. At default, it is just set to 0. But it will change whenever the cube jumps, falls down, hit by a pad, etc. If it is positive, then the cube is going up. If it is negative, then the cube is going down.

Note that the Y-Speed can only range values of at least -2.6.

And also, when the cube hits a "floor", then its Y-Speed will instantly change to 0.

So, this is how gravity is calculated in the game. The gravity is the acceleration in which the cube goes down, if no platform is below it.

The gravity is dependent on the Y-Speed of the cube. It is given from the following formula:

Here is an example. Let's say the cube fell from a block 10 blocks away from the ground.

Then, the way how the cube falls will look something like this:

The cube starts at the position where its 10 blocks from the ground.

The blue part represents the portion where gravity is -0.876 units. While the red part represents where gravity is 0, gravity doesn't affect the cube.

Notice how the blue part is a parabola, while the red part is just linear.

The cube initially starts falling with an acceleration, until after around 3 blocks have passed, the cube just falls at a constant rate.

Now, this is what it looks like if a cube got off a steep slope:

The black lines is the slope where the cube came from, while blue and red is what looks like when the cube falls.

**Jumping**Now, for the next part, which is how the cube jumps.

Whenever the screen is tapped, the cube's Y-Speed changes to 1.94.

This graph shows what happens when the cube jumps:

From this, we can see that cube can jump as high as 2.148 blocks upwards, before it proceeds falling down.

Now, if the cube's size is Mini, then its Y-Speed would just be 1.41 instead. Which makes it go up at most 1.633 blocks.

**Orbs and Pads**Finally, we will have the Orbs and Pads. What these do, is only change the Y-speed in some way.

For example, when the cube touches a yellow pad, its Y-Speed changes to 2.774.

Here is a table showing how each pad and orb changes the Y-Speed:

Yellow Pad | Pink Pad | Red Pad | Blue Pad | Yellow Orb | Pink Orb | Red Orb | Blue Orb | Green Orb | Black Orb | Green Dash Orb | Pink Dash Orb | |

Normal | 2.77 | 1.79 | 3.65 | -1.37* | 1.91 | 1.37 | 2.68 | -1.37* | -1.91* | -2.6 | 0 | 0* |

Mini | 2.13 | 1.32 | 2.71 | -1.37* | 1.43 | 0.94 | 2.05 | -1.37* | -1.43* | -2.6 | 0 | 0* |

Note that for Dash orbs, the Y-Speed will always be set to 0 no matter which angle you go from.

This means that if you released a dash orb, the cube won't be affected by the momentum from it, causing it to just suddenly fall if the angle was upwards, and just suddenly "bounce" up a bit if the angle was downwards.

*Asterisks beside the number represent that the gravity will also be reversed.

For example, this is what it looks like when a cube touches a yellow pad, then presses a pink orb:

The yellow curve represents the path the cube goes through after the yellow pad was touched, while purple curve represents the path when the pink orb is pressed.

Notice that if the cube presses the pink orb, it stops going through the path of the first pad and moving on to the next one.

Also, notice that the parabolas are just identical to each other. This is because the acceleration is always -0.876, so the leading coefficient for the equations of each parabola can only be -0.438.

That is basically everything you need to know about the Cube for now. I will cover other gamemodes in the next parts.

For now, I'm not completely sure on how Slopes behave. Since the Y-Speeds seem different when sliding on it, and when going on the tip of it.