Skip to content

Commit df368d7

Browse files
committed
first batch of changes for post 04
1 parent a9fa84b commit df368d7

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed
4.84 MB
Loading
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
![Sandbox pinball with flying ape](flying_ape.gif "Sandbox pinball with flying ape")
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)
44 KB
Loading

src/content/posts/exploding-marbles/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Exploding Marbles
3-
published: 2025-04-09
3+
published: 2025-04-14
44
description: "Which direction a exploding marble takes? We'll see"
55
image: 'obsidian.png'
66
tags: [Project Marbles]
@@ -84,4 +84,4 @@ Stay tuned for more.
8484

8585
---
8686

87-
Thanks you for reading, stay hydrated and have a fantastic week!
87+
Thanks you for reading, stay hydrated and have a fantastic week!

0 commit comments

Comments
 (0)