• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 01:00
CET 07:00
KST 15:00
  • 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
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)11Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns6[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises3
StarCraft 2
General
Spontaneous hotkey change zerg Chinese SC2 server to reopen; live all-star event in Hangzhou Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026 OSC Season 13 World Championship
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
I would like to say something about StarCraft Potential ASL qualifier breakthroughs? BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest
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
Awesome Games Done Quick 2026! Mechabellum Beyond All Reason Stormgate/Frost Giant Megathread General RTS Discussion Thread
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 European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
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: 1917 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 3h
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft382
RuFF_SC2 212
Livibee 207
NeuroSwarm 118
FoxeR 27
StarCraft: Brood War
Shuttle 527
zelot 207
Snow 171
ZergMaN 85
JulyZerg 36
Noble 19
Icarus 7
League of Legends
JimRising 833
Counter-Strike
summit1g9710
Super Smash Bros
hungrybox483
Other Games
ViBE103
Liquid`Ken18
Organizations
Other Games
gamesdonequick4865
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• Hupsaiya 74
• Berry_CruncH36
• practicex 29
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• RayReign 114
• Diggity20
• iopq 4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Scarra1769
• Rush1662
• Lourlo1107
• Stunt395
Upcoming Events
Replay Cast
3h
Wardi Open
8h
Monday Night Weeklies
11h
WardiTV Invitational
1d 6h
WardiTV Invitational
2 days
The PondCast
3 days
OSC
3 days
OSC
4 days
All Star Teams
4 days
INnoVation vs soO
sOs vs Scarlett
uThermal 2v2 Circuit
5 days
[ Show More ]
All Star Teams
5 days
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
6 days
OSC
6 days
Liquipedia Results

Completed

Proleague 2026-01-11
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
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
Thunderfire SC2 All-star 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
BLAST Bounty Winter Qual
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.