X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=physics_test.h;h=8143c1d02d4bc4814423cb3cc8389675e70ba48e;hb=344f0153cf1907da87dd041db3ec517325b1c429;hp=bd8bc073acaf68a392495b40ceac7765a12aa173;hpb=55faf7fcd56fad190f53e6da4417c5bb1c2234d7;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/physics_test.h b/physics_test.h index bd8bc07..8143c1d 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