X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=physics_test.h;h=d3b9f0640b97f035acfa5253e4660afe9bcb2c63;hb=1c97cb161f885ad24d3356d92c8f4fd0e252bc61;hp=bd8bc073acaf68a392495b40ceac7765a12aa173;hpb=55faf7fcd56fad190f53e6da4417c5bb1c2234d7;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/physics_test.h b/physics_test.h index bd8bc07..d3b9f06 100644 --- a/physics_test.h +++ b/physics_test.h @@ -49,29 +49,52 @@ 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 = {0.0f,0.0f,0.0f,1.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