X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_ragdoll.h;fp=player_ragdoll.h;h=d6607ae89331a9ef7ec2883e37099f7665043f73;hb=f99902f513b0ad606437bf32de47405dd4ea5f98;hp=101d8f9c5850f488a5d7fe06162dfd7dca5b97db;hpb=01e2535f8daaab0e3d46dcc61a08a9268babd47c;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_ragdoll.h b/player_ragdoll.h index 101d8f9..d6607ae 100644 --- a/player_ragdoll.h +++ b/player_ragdoll.h @@ -36,6 +36,23 @@ struct player_ragdoll{ int shoes[2]; }; +VG_STATIC float k_ragdoll_floatyiness = 20.0f, + k_ragdoll_floatydrag = 1.0f, + k_ragdoll_limit_scale = 1.0f; + +VG_STATIC int k_ragdoll_div = 1, + ragdoll_frame = 0, + k_ragdoll_debug_collider = 1, + k_ragdoll_debug_constraints = 0; + +VG_STATIC void player_ragdoll_init(void) +{ + VG_VAR_F32( k_ragdoll_limit_scale ); + VG_VAR_I32( k_ragdoll_div ); + VG_VAR_I32( k_ragdoll_debug_collider ); + VG_VAR_I32( k_ragdoll_debug_constraints ); +} + VG_STATIC void player_init_ragdoll_bone_collider( struct skeleton_bone *bone, struct ragdoll_part *rp ) {