[ODE] Autodisable defaults
Gopi Prashanth
gprashanth at Heavy-Iron.com
Thu Apr 21 09:37:28 MST 2005
I was under the impression, only if the and of all the mentioned conditions
is true then and only then the body gets disabled, I feel that is
reasonable. You might want to chage it depending on your specific scenario.
I work on games and it seems just fine.
-----Original Message-----
From: Colin Bonstead [mailto:colin at cyan.com]
Sent: Thursday, April 21, 2005 9:11 AM
To: ode at q12.org
Subject: [ODE] Autodisable defaults
I was looking at the autodisable defaults that dWorldCreate uses, and it
seems like there's a problem. Here's what's in the code:
w->adis.linear_threshold = REAL(0.001)*REAL(0.001);
w->adis.angular_threshold = REAL(0.001)*REAL(0.001);
w->adis.idle_steps = 10;
w->adis.idle_time = 0;
w->adis_flag = 0;
So if a body has linear and angular velocity less than linear_threshold
and angular_threshold for more than idle_steps or idle_time it will get
disabled. Idle_steps seems reasonable at 10, but idle_time is zero,
which means bodies will get disabled the instant they drop below the
thresholds. Is this right?
_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode
More information about the ODE
mailing list