projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maths api changes
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_routes.h
diff --git
a/world_routes.h
b/world_routes.h
index 1b46a36e205a969746ca88ba744100a05e69a81b..9308daa3b6a9e74cc660cbf3afcb97dedab47cae 100644
(file)
--- a/
world_routes.h
+++ b/
world_routes.h
@@
-637,7
+637,7
@@
VG_STATIC void world_routes_fixedupdate( world_instance *world )
rb_presolve_contacts( rb_contact_buffer, rb_contact_count );
for( int i=0; i<rb_contact_count; i++ ){
rb_presolve_contacts( rb_contact_buffer, rb_contact_count );
for( int i=0; i<rb_contact_count; i++ ){
- rb_contact_restitution( rb_contact_buffer+i, vg_randf() );
+ rb_contact_restitution( rb_contact_buffer+i, vg_randf
64
() );
}
for( int i=0; i<6; i++ ){
}
for( int i=0; i<6; i++ ){
@@
-819,13
+819,13
@@
VG_STATIC void world_routes_fracture( world_instance *world, ent_gate *gate,
v3_muls( origin, -1.0f, particle->mlocal[3] );
v3_copy( world_co, particle->obj.rb.co );
v3_muls( origin, -1.0f, particle->mlocal[3] );
v3_copy( world_co, particle->obj.rb.co );
- v3_muls( imp_v, 1.0f+vg_randf(), particle->obj.rb.v );
+ v3_muls( imp_v, 1.0f+vg_randf
64
(), particle->obj.rb.v );
particle->obj.rb.v[1] += 2.0f;
v4_copy( q, particle->obj.rb.q );
particle->obj.rb.v[1] += 2.0f;
v4_copy( q, particle->obj.rb.q );
- particle->obj.rb.w[0] = vg_randf()*2.0f-1.0f;
- particle->obj.rb.w[1] = vg_randf()*2.0f-1.0f;
- particle->obj.rb.w[2] = vg_randf()*2.0f-1.0f;
+ particle->obj.rb.w[0] = vg_randf
64
()*2.0f-1.0f;
+ particle->obj.rb.w[1] = vg_randf
64
()*2.0f-1.0f;
+ particle->obj.rb.w[2] = vg_randf
64
()*2.0f-1.0f;
particle->obj.type = k_rb_shape_sphere;
particle->obj.inf.sphere.radius = r*0.6f;
particle->obj.type = k_rb_shape_sphere;
particle->obj.inf.sphere.radius = r*0.6f;