• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:08
CEST 15:08
KST 22:08
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S Season 1 - RO8 Preview3[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10
Community News
Maestros of The Game 2 announcement and schedule !7Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026) Sea Duckling Open (Global, Bronze-Diamond) RSL Revival: Season 5 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Do we have a pimpest plays list? Why there arent any 256x256 pro maps? BGH Auto Balance -> http://bghmmr.eu/ (Spoiler) Asl ro8 D winner interview BW General Discussion
Tourneys
[ASL21] Ro8 Day 4 Escore Tournament StarCraft Season 2 Small VOD Thread 2.0 [BSL22] RO16 Group Stage - 02 - 10 May
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread OutLive 25 (RTS Game) Dawn of War IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
European Politico-economics QA Mega-thread US Politics Mega-thread Canadian Politics Mega-thread The Letting Off Steam Thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1192 users

Student Game Dev Part Six - Even more physics

Blogs > Soan
Post a Reply
Soan
Profile Blog Joined August 2010
New Zealand194 Posts
December 20 2013 07:33 GMT
#1
Part One - It begins
Part Two - Technical Foundation
Part Three - Game Design
Part Four - Input and Physics
Part Five - More Physics Things

This Week
Hello again TeamLiquid!

Welcome back to my blog about the development of The Adventures of Sam the Pirate, the 2D platformer I'm creating as the final game project for my Bachelor of Software Engineering degree. I know I know, another blog on physics?! All of my work over the last few weeks has been on the physics, so that's all I've really got to talk about at the moment. Last week I covered my work on movement and collision detection, this week is updates on mostly more of the same, which might be a bit boring, but I've managed to get moving platforms working, and have a new piece of concept art to show off.

Collision Detection
Collision detection response is now more accurate. The player will always sit directly on top of a tile, rather than sink into it a little, which is perfect. The overall reaction is still a bit dodgy, as horizontal and vertical checks are done at the same time. So if the player lands directly on top of a tile, there's no problem. If the player hits the side of a tile, the horizontal response goes off and the player doesn't go through the tile, but the vertical response goes off as well and the player is teleported to either the top or bottom of the tile, depending on their height when they collided. Not 100% sure on how I'm going to fix this yet, so I'll need to do some thinking over the holidays.

Moving platforms!
On the upside, I've now got moving platforms! They make use of the same vertical collision response as previously mentioned, but because there's no vertical collision check, they work perfectly fine. If the player lands on the moving platform, they can ride back and forth as you'd expect, but it's a little dodgy at the moment. Every time the platform changes direction, the player continues in the previous direction for a few frames before turning around with the platform. If you ride the platform for long enough, eventually this effect will cause you to be shunted off, at which the point the players velocity is still matching the moving platform, so they just slide along. So it works, but it's pretty buggy.

New Concept Art
[image loading]

What's next?
No new blog posts for a couple of weeks, due to Christmas and New Years. I've got plans to still do some work, likely starting work on an interface framework, buttons and the like, so when I come back the next blog post will be about any progress I've made with that. Along with any work on fixing the physics that I manage to get done. Right now that will probably be around the 7th of January. Until then, I hope you all enjoy your Christmas and have a good New Years!

Keep up to date!
Be sure to follow me on Twitter, and like the Facebook page to stay up to date on future content and blog posts when they happen. If you have any questions don't hesitate to ask, either through Twitter or Facebook!

Tobberoth
Profile Joined August 2010
Sweden6375 Posts
December 20 2013 09:03 GMT
#2
I had that same collision detection issue recently, took me quite a while to figure out how to work around it. Basically, what you want to do, is check the axises separately. So first you do horizontal movement, if there is collision, you fix the horizontal movement. THEN you do the vertical movement, and fix it. Since you are always moving and checking only one direction at a time, it's always clear how the object should be moved, and you don't get jumpiness, you can always move it minimally. (This, of course, assumes axis aligned bounding boxes, I think it's far more complex otherwise).
stefantheterran
Profile Joined December 2013
Austria61 Posts
December 20 2013 12:35 GMT
#3
I look forward to your next update, hope you get lots of work done so you can show little more of your game (if you can/want)!
Cyx.
Profile Joined November 2010
Canada806 Posts
December 22 2013 04:17 GMT
#4
On December 20 2013 18:03 Tobberoth wrote:
I had that same collision detection issue recently, took me quite a while to figure out how to work around it. Basically, what you want to do, is check the axises separately. So first you do horizontal movement, if there is collision, you fix the horizontal movement. THEN you do the vertical movement, and fix it. Since you are always moving and checking only one direction at a time, it's always clear how the object should be moved, and you don't get jumpiness, you can always move it minimally. (This, of course, assumes axis aligned bounding boxes, I think it's far more complex otherwise).

Haha quoted for truth =D I've been following these blogs for a while without posting, but I just recently did a little game-engine project in 2d and I had the same problem =P resolved in the exact same manner. Just do them one at a time, and resolve them before you move on =) I really love these blogs though, I've gone through a ton of the same stuff as this.
Please log in or register to reply.
Live Events Refresh
WardiTV Invitational
11:00
Wardi Spring Cup
Zoun vs ShoWTimELIVE!
Ryung vs TBD
IntoTheiNu 868
WardiTV692
TKL 207
Rex107
Ryung 94
LiquipediaDiscussion
Escore
10:00
Week 6
escodisco2247
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 207
Rex 107
Ryung 94
StarCraft: Brood War
Britney 45519
Sea 6641
Horang2 1526
Bisu 1355
firebathero 936
Mini 518
Light 364
Killer 317
EffOrt 304
Stork 291
[ Show more ]
Soma 266
actioN 234
Hyuk 225
Pusan 186
ggaemo 168
BeSt 137
Zeus 132
Soulkey 131
ZerO 113
Hyun 86
Rush 80
hero 70
Dewaltoss 64
ToSsGirL 60
HiyA 41
soO 40
[sc1f]eonzerg 38
Sharp 37
Backho 33
910 30
Free 28
Shine 22
Barracks 18
scan(afreeca) 16
Larva 15
Bale 14
sorry 13
Sacsri 13
IntoTheRainbow 13
ajuk12(nOOB) 12
Noble 11
GoRush 11
Terrorterran 11
Icarus 7
Rock 3
Dota 2
Gorgc4729
XcaliburYe122
syndereN118
qojqva24
League of Legends
Reynor78
Counter-Strike
zeus863
allub225
edward151
Other Games
gofns19531
singsing2120
B2W.Neo1153
hiko502
DeMusliM469
Lowko334
KnowMe153
monkeys_forever116
Mew2King85
ArmadaUGS49
djWHEAT42
ZerO(Twitch)13
Organizations
Other Games
gamesdonequick1410
StarCraft: Brood War
lovetv 13
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• Adnapsc2 16
• iHatsuTV 10
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis3466
• TFBlade773
Other Games
• WagamamaTV310
Upcoming Events
Big Brain Bouts
2h 52m
Fjant vs Bly
Serral vs Shameless
OSC
8h 52m
The PiG Daily
9h 52m
Maru vs Rogue
TBD vs Classic
herO vs Solar
ByuN vs Solar
Replay Cast
10h 52m
CranKy Ducklings
20h 52m
RSL Revival
20h 52m
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
21h 52m
Krystianer vs TriGGeR
Cure vs Rogue
SC Evo League
23h 52m
uThermal 2v2 Circuit
1d 1h
BSL
1d 5h
Artosis vs TerrOr
spx vs StRyKeR
[ Show More ]
Replay Cast
1d 10h
Sparkling Tuna Cup
1d 20h
RSL Revival
1d 20h
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
1d 21h
BSL
2 days
Dewalt vs DragOn
Aether vs Jimin
GSL
2 days
Afreeca Starleague
2 days
Soma vs Leta
Wardi Open
2 days
Monday Night Weeklies
3 days
OSC
3 days
CranKy Ducklings
3 days
Afreeca Starleague
3 days
Light vs Flash
Replay Cast
4 days
Replay Cast
5 days
The PondCast
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2026-05-05
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
Escore Tournament S2: W6
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

KK 2v2 League Season 1
BSL 22 Non-Korean Championship
YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
BLAST Bounty Summer 2026: Closed Qualifier
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.