|
| 1 | +--- |
| 2 | +title: Adjusting the course of the boat |
| 3 | +published: 2025-05-06 |
| 4 | +description: "A tiny vessel in a sea of problems" |
| 5 | +image: 'love_gh_banner.png' |
| 6 | +tags: [Project Marbles] |
| 7 | +category: 'Game Dev Log' |
| 8 | +draft: false |
| 9 | +lang: '' |
| 10 | +--- |
| 11 | + |
| 12 | +> Don't mind the _**love**ly_ spoiler |
| 13 | +
|
| 14 | +It's been a while, huh? The weekly progress update I wanted is turning out to be monthly. And that's ok, if we keep rowing forward. [Row, row row!](https://www.youtube.com/watch?v=_Mvx4X78sqk) |
| 15 | + |
| 16 | +# The iceberg |
| 17 | + |
| 18 | +Not wanting to come across as pedantic, but if I were living the hero's journey, this would be the first challenge our hero (me) faced into the unkown. And what is the challenge, you ask? Let me show you: |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +Yeah, let's unpack them. |
| 23 | + |
| 24 | +## One small step for and ape... |
| 25 | + |
| 26 | +This is the blindingly obvious issue, that is, the Ape reaches [Mach 1](https://en.wikipedia.org/wiki/Mach_number) and crosses what was suppose to be the upper limit of the pinball arena. The funny thing about this bug is that it only happened when I was recording to show the current status to a few friends, I could not reproduce after a few minutes trying. |
| 27 | + |
| 28 | +## Junky flipper pushes |
| 29 | + |
| 30 | +If you excuse the awful compression of the gif, you may be able to see that the flippers - although working at a first glance - moves a little ahead of the ball. That is, it first goes to the position and, between the physics frames, pushes the ball along its trajectory, making its movement lag behind the actual push. |
| 31 | + |
| 32 | +## The setup |
| 33 | + |
| 34 | +Explaining a bit about Physics Engine in the scope of game development, there are three main actors for a physics simulation: |
| 35 | + |
| 36 | +1. **Static Body:** an object that does **not** move, used for floors non-breakable buildings or objects (in our example, it would be the walls of the pinball) |
| 37 | +2. **Dynamic or Rigid Body:** an object that moves and collides with all other objects in the physics world **via the simulation** of forces (the pinball ball) |
| 38 | +3. **Kinematic Body:** an object that does not react to external forces, pushes dynamic bodies around is moved via some **programming logic** (the flippers) |
0 commit comments