• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:27
CET 19:27
KST 03:27
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets3$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)15Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1825
StarCraft 2
General
SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list? Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament SC2 AI Tournament 2026 $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) $25,000 Streamerzone StarCraft Pro Series announced WardiTV Winter Cup
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
[ASL21] Potential Map Candidates BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion A cwal.gg Extension - Easily keep track of anyone Potential ASL qualifier breakthroughs?
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Awesome Games Done Quick 2026! Mechabellum Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2133 users

Protip: Physics Engine Dev

Blogs > CecilSunkure
Post a Reply
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
Last Edited: 2013-10-04 05:54:58
October 04 2013 05:47 GMT
#1
Today I figured out the single most important tip I could ever give anyone in regards to being a competent physics engine developer. I will share this tip right here on my humble blog:

Your skills as a physics developer will grow at a rate proportional to how good your debug draw information is. I'd actually argue that your skills as a physics developer are proportional to how good your debug draw is.

I feel I'm getting better at this, lets get some screen shots going!

[image loading]
Initial simplex during Quick Hull.

[image loading]
Stack of polyhedron (OBB meshes). The blue and red contacts are warm started (red is warm started consistently over many frames).

[image loading]
Spent a lot of time creating Maya-like camera controls with orbiting.


I digress. I didn't figure out this simple fact on my own; I gleaned this wisdom off of my friend Nathan Carlson. He pointed out that the reason a lot of students at DigiPen have trouble with computational geometry and general physics engine development due to a lack of debug rendering.

Just take a look at Dirk Gregorius's sample demo from his GDC 2013 lecture. He fully renders Gauss maps, a minkoswki difference, and has glorius camera controls. I actually copied his camera design and implemented it myself. You can see that he has Ant Tweakbar integrated as well, for various tweaking tasks. Erin Catto has lots and lots of different tests, asserts, and most important of all tons of debug drawing for his Box2D library. The Zero team on the third floor of DigiPen definitely has the craziest debug draw I've ever heard of!

Hopefully I can achieve something at least in the likeness of all these other developers, and I recommend readers do the same; intuition is often best built visually when it comes to geometry.



Cross posted from my own website.


**
jrkirby
Profile Blog Joined August 2010
United States1510 Posts
October 04 2013 06:16 GMT
#2
It's unfortunate that we keep tring to fool ourselves that the solution is simple and easier than actually creating a bit more geometry to draw onscreen.
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
October 04 2013 08:18 GMT
#3
Yeah, I keep forcing myself to write more and more debug visualization right now. It's always helpful moreso than anything else I could be doing right now though. Hopefully as time goes on I'll learn to each my vegetables before ruining my appetite.
Bobbias
Profile Blog Joined March 2008
Canada1373 Posts
October 04 2013 10:12 GMT
#4
That is pretty interesting. It's really cool to be able to actually visualize abstract math like that too.
ArcticRaven
Profile Joined August 2011
France1406 Posts
October 04 2013 16:15 GMT
#5
If it grows at a proportional rare, then it's probably proportional to the square
[Govie] Wierd shit, on a 6 game AP winning streak with KOTL in the trench. I searched gandalf quotes and spammed them all game long, trenchwarfare247, whateva it takes!
krez
Profile Joined August 2013
Australia59 Posts
October 08 2013 02:57 GMT
#6
Just curious, what language are you doing your game dev in?
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
October 08 2013 04:09 GMT
#7
On October 08 2013 11:57 krez wrote:
Just curious, what language are you doing your game dev in?

C++ sir!
BisuDagger
Profile Blog Joined October 2009
Bisutopia19300 Posts
October 10 2013 17:21 GMT
#8
On October 08 2013 13:09 CecilSunkure wrote:
Show nested quote +
On October 08 2013 11:57 krez wrote:
Just curious, what language are you doing your game dev in?

C++ sir!

I feel like to create any good engine the foundation of programming lies in datastructures especially when writing a phyics engine. How else does one sort geometry. It'd be great to see you give a write up on Binary Search Trees, Hash Tables, or even the simple dynamic array.
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
Please log in or register to reply.
Live Events Refresh
Next event in 15h 33m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 423
UpATreeSC 350
TKL 170
BRAT_OK 86
JuggernautJason74
MindelVK 25
StarCraft: Brood War
Shuttle 728
Zeus 126
Dewaltoss 118
hero 111
910 28
Bale 8
Noble 5
Dota 2
qojqva2721
Counter-Strike
fl0m3053
pashabiceps1076
Foxcn264
adren_tv63
Other Games
Liquid`RaSZi2008
FrodaN1447
Beastyqt607
ceh9496
ArmadaUGS270
DeMusliM259
byalli239
QueenE141
ToD61
Mew2King44
KnowMe41
kaitlyn22
Organizations
Other Games
gamesdonequick1385
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Kozan
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• intothetv
• IndyKCrew
StarCraft: Brood War
• HerbMon 21
• FirePhoenix10
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2732
• lizZardDota259
League of Legends
• TFBlade975
• Shiphtur532
Other Games
• imaqtpie1136
Upcoming Events
The PondCast
15h 33m
OSC
17h 33m
Jumy vs sebesdes
Nicoract vs GgMaChine
ReBellioN vs MaNa
Lemon vs TriGGeR
Gerald vs Cure
Creator vs SHIN
OSC
1d 17h
All Star Teams
2 days
INnoVation vs soO
Serral vs herO
Cure vs Solar
sOs vs Scarlett
Classic vs Clem
Reynor vs Maru
uThermal 2v2 Circuit
2 days
All Star Teams
3 days
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
3 days
OSC
3 days
Replay Cast
4 days
Wardi Open
4 days
[ Show More ]
Monday Night Weeklies
4 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-01-13
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
OSC Championship Season 13
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
SC2 All-Star Inv. 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 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.