From 96f4f0ac80d20f0c9000129652174568189ebe07 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 18 Apr 2017 16:57:44 +0000 Subject: [PATCH] Disable world damping by default, it was making ODE physics unusable. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5092 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/com_phys_ode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/common/com_phys_ode.c b/engine/common/com_phys_ode.c index ad5c17afa..84ba3adbe 100644 --- a/engine/common/com_phys_ode.c +++ b/engine/common/com_phys_ode.c @@ -1293,10 +1293,10 @@ static qboolean World_ODE_Init(void) physics_ode_contact_erp = pCvar_GetNVFDG("physics_ode_contact_erp", "0.96", 0, "contact solver erp parameter - Error Restitution Percent (see ODE User Guide)", "ODE Physics Library"); physics_ode_contact_cfm = pCvar_GetNVFDG("physics_ode_contact_cfm", "0", 0, "contact solver cfm parameter - Constraint Force Mixing (see ODE User Guide)", "ODE Physics Library"); physics_ode_world_damping = pCvar_GetNVFDG("physics_ode_world_damping", "1", 0, "enabled damping scale (see ODE User Guide), this scales all damping values, be aware that behavior depends of step type", "ODE Physics Library"); - physics_ode_world_damping_linear = pCvar_GetNVFDG("physics_ode_world_damping_linear", "0.005",0, "world linear damping scale (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); - physics_ode_world_damping_linear_threshold = pCvar_GetNVFDG("physics_ode_world_damping_linear_threshold", "0.01", 0, "world linear damping threshold (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); - physics_ode_world_damping_angular = pCvar_GetNVFDG("physics_ode_world_damping_angular", "0.005",0, "world angular damping scale (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); - physics_ode_world_damping_angular_threshold = pCvar_GetNVFDG("physics_ode_world_damping_angular_threshold", "0.01", 0, "world angular damping threshold (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); + physics_ode_world_damping_linear = pCvar_GetNVFDG("physics_ode_world_damping_linear", "-1",0, "world linear damping scale (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); + physics_ode_world_damping_linear_threshold = pCvar_GetNVFDG("physics_ode_world_damping_linear_threshold", "-1", 0, "world linear damping threshold (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); + physics_ode_world_damping_angular = pCvar_GetNVFDG("physics_ode_world_damping_angular", "-1",0, "world angular damping scale (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); + physics_ode_world_damping_angular_threshold = pCvar_GetNVFDG("physics_ode_world_damping_angular_threshold", "-1", 0, "world angular damping threshold (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); physics_ode_world_erp = pCvar_GetNVFDG("physics_ode_world_erp", "-1", 0, "world solver erp parameter - Error Restitution Percent (see ODE User Guide); use defaults when set to -1", "ODE Physics Library"); physics_ode_world_cfm = pCvar_GetNVFDG("physics_ode_world_cfm", "-1", 0, "world solver cfm parameter - Constraint Force Mixing (see ODE User Guide); not touched when -1", "ODE Physics Library"); physics_ode_iterationsperframe = pCvar_GetNVFDG("physics_ode_iterationsperframe", "4", 0, "divisor for time step, runs multiple physics steps per frame", "ODE Physics Library");