projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inertia tensors
[carveJwlIkooP6JGAAIwe30JlM.git]
/
physics_test.h
diff --git
a/physics_test.h
b/physics_test.h
index 33a6b6b7f8c56b70a75470da8e96ea55b3d9eb90..acf4ed3cd96c6e46183b3995a81093075a51601d 100644
(file)
--- a/
physics_test.h
+++ b/
physics_test.h
@@
-22,7
+22,7
@@
rigidbody blocky =
rigidbody marko =
{
.type = k_rb_shape_box,
rigidbody marko =
{
.type = k_rb_shape_box,
- .bbx = {{-
0.5f,-0.5f,-0.5f},{0.5f,0.5f,0.5
f}},
+ .bbx = {{-
2.0f,-2.0f,-2.0f},{2.0f,2.0f,2.0
f}},
.co = {-36.0f,8.0f,-36.0f},
.q = {0.0f,0.0f,0.0f,1.0f},
.is_world = 0
.co = {-36.0f,8.0f,-36.0f},
.q = {0.0f,0.0f,0.0f,1.0f},
.is_world = 0
@@
-73,7
+73,7
@@
rigidbody jeff1 = { .type = k_rb_shape_capsule,
};
rigidbody ball = { .type = k_rb_shape_sphere,
};
rigidbody ball = { .type = k_rb_shape_sphere,
- .inf.sphere = { .radius =
2
.0f },
+ .inf.sphere = { .radius =
4
.0f },
.co = {0.0f,20.0f,2.0f},
.q = {0.0f,0.0f,0.0f,1.0f}},
.co = {0.0f,20.0f,2.0f},
.q = {0.0f,0.0f,0.0f,1.0f}},
@@
-88,6
+88,8
@@
static void reorg_jeffs(void)
{
for( int i=0; i<vg_list_size(jeffs); i++ )
{
{
for( int i=0; i<vg_list_size(jeffs); i++ )
{
+ v3_zero( jeffs[i].v );
+ v3_zero( jeffs[i].w );
v3_copy( (v3f){ (vg_randf()-0.5f) * 10.0f,
(vg_randf()-0.5f) * 10.0f + 17.0f,
(vg_randf()-0.5f) * 10.0f }, jeffs[i].co );
v3_copy( (v3f){ (vg_randf()-0.5f) * 10.0f,
(vg_randf()-0.5f) * 10.0f + 17.0f,
(vg_randf()-0.5f) * 10.0f }, jeffs[i].co );
@@
-97,7
+99,7
@@
static void reorg_jeffs(void)
jeffs[i].type = k_rb_shape_capsule;
jeffs[i].inf.capsule.radius = 0.75f;
jeffs[i].type = k_rb_shape_capsule;
jeffs[i].inf.capsule.radius = 0.75f;
- jeffs[i].inf.capsule.height =
3
.0f;
+ jeffs[i].inf.capsule.height =
8
.0f;
rb_init( &jeffs[i] );
}
rb_init( &jeffs[i] );
}