diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-07 17:16:14 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-07 17:16:14 -0500 |
commit | 62d79ffc94f7ea177bd1a0745604490214e1e036 (patch) | |
tree | 8edd6b2c49956bb27e96324eef2d1520306ef6d3 /sim.h | |
parent | 2227e40af76aa10d87bbcce0f7df73d98407881b (diff) |
physics?
Diffstat (limited to 'sim.h')
-rw-r--r-- | sim.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -110,6 +110,12 @@ typedef struct { } Platform; typedef struct { + v2 pos; // position + v2 vel; // velocity + float radius; +} Ball; + +typedef struct { bool initialized; i32 win_width, win_height; // width,height of window @@ -122,6 +128,8 @@ typedef struct { ShaderPlatform shader_platform; ShaderBall shader_ball; + Ball ball; + u32 nplatforms; Platform platforms[1000]; |