X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=physics_test.h;h=d3b9f0640b97f035acfa5253e4660afe9bcb2c63;hb=1c97cb161f885ad24d3356d92c8f4fd0e252bc61;hp=8187b914ab39c5ddf5e19c6fed7a28b33212b946;hpb=84a7ae83a25966e0004a1a4b409dbb3d49fae286;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/physics_test.h b/physics_test.h index 8187b91..d3b9f06 100644 --- a/physics_test.h +++ b/physics_test.h @@ -9,6 +9,16 @@ rigidbody ground = { .type = k_rb_shape_box, .co = {0.0f, 0.0f, 0.0f}, .q = {0.0f,0.0f,0.0f,1.0f}, .is_world = 1 }; + +rigidbody blocky = + { + .type = k_rb_shape_box, + .bbx = {{-2.0f,-1.0f,-3.0f},{2.0f,1.0f,2.0f}}, + .co = {30.0f,2.0f,30.0f}, + .q = {0.0f,0.0f,0.0f,1.0f}, + .is_world = 1 + }; + rigidbody funnel[4] = { { .type = k_rb_shape_box, @@ -36,30 +46,60 @@ rigidbody funnel[4] = { } }; +rigidbody jeff1 = { .type = k_rb_shape_capsule, + .inf.capsule = { .radius = 0.75f, .height = 3.0f }, + .co = {30.0f, 4.0f, 30.0f }, + .q = {1.0f,0.0f,0.0f,0.0f} +}; rigidbody ball = { .type = k_rb_shape_sphere, .inf.sphere = { .radius = 2.0f }, - .co = {0.0f,6.0f,0.0f}, + .co = {0.0f,20.0f,2.0f}, .q = {0.0f,0.0f,0.0f,1.0f}}, ball1= { .type = k_rb_shape_sphere, - .inf.sphere = { .radius = 1.0f }, - .co = {0.1f,9.0f,0.2f}, + .inf.sphere = { .radius = 2.0f }, + .co = {0.1f,25.0f,0.2f}, .q = {0.0f,0.0f,0.0f,1.0f}}; +rigidbody jeffs[16]; + +static void reorg_jeffs(void) +{ + for( int i=0; i