Is this in ODE Java?
If not is there a time table for it?
Cheers.
Is this in ODE Java?
If not is there a time table for it?
Cheers.
First question, whats auto-disable?
Disable what? When do you want it automatically disabled?
Kev
Auto disable is a feature that disables objects when they remain motionless for a specified amount of time…Leads to some hefty speed increases for large(ish) systems.
I`ve written my own stuff to handle this and it works but ODE has this built in. Just not in the java version (the methods return default values and the code is commented out).
I found some posts by Jani that says the code was done and he was going to commit the changes to cvs but that was in march.
Cheers.
I assume you checked the source but in World.java :
/**
* Control whether the world should allow auto-disable of bodies. A value
* of true will enable the auto disable ability. Whether individual bodies
* are disabled or not depends on the settings of the individual
* thresholds (which can be set by other methods).
*
* @param state True to enable auto disabling of bodies, false to disable
*/
public void setAutoDisableBodies(boolean state) {
// Ode.dWorldSetAutoDisableFlag(worldId, state ? 1 : 0);
}
http://odejava.org/showsrc.php?src=src/org/odejava/World.java
So it would appear the binding is in but has been commented out for some reason. Maybe try putting it back in and see what happens?
Strikes that ODEjava could do with an audit of some sort (unless there already a change tracker around somwhere?) to find out exactly what is and isn’t available. It’d be nice if things like this threw a runtime exception indicating that its not implemented.
Just a few more levels to design and I might well give it a go if no one minds.
Kev
I might do when I get the time
Jani did say it was working a good while back, seems odd that it hasn`t been committed.
Cheers Kev.
I put them in there. At the time, the native bindings did not have the method calls available, so I just put in what they should look like. Later, when the native binding bit is added, the method call can be uncommented and we’re right to go.
…what’s the status of auto disable? I don’t seem to be able to get it to work, and the method bodies still are commented out. This feature is rather important, or not?
Any updates on this?
No idea. I haven’t been keeping pace with ODEJava for a while. I wanted to make quite a few changes to the basic interfaces, but apart from Will, the other developers were invisible. Other things with work came up and I haven’t had a chance to work on any of it. I should fire an email back to Will about this and see if we can get some movement happening again.
btw, setting CFM to a value like 0.01 does wonders for surpressing of the “trembling” that is observable with idle bodies (default is 0.00001 I think). not really an autoDisable surrogate, but it helps.