Minor bug

the constructor for Body that does not take a Geom is playing up for me. My work around is


//work around (the constructer without a geom is broke)
        Geom geom = new GeomBox(10,10,10);
        body = new Body(null, world, geom); //create with a geom
        body.removeGeom(geom);  //get rid of that geom coz we don't want it
        geom.delete();  //we can tidy it up as well!

if I don’t use the 3 parameterized constructor after a world step the get positions and stuff return vectors of NaNs

woah - Body (String, World) simply delegates to Body(String, World, Geom). The only “geom specific” line in the constructor is:


        if (geom != null) {
            setGeom(geom);
        }

I have used the Body(Stirng, World) constructor in the past with no probs although I havn’t been using it recently.

Do you have any more clues to explain this?

Will.

Yeah I dunno. I looked in the src and saw that line. and I also saw that setGeom(Geom) simply delegates to addGeom(Geom). So I tried constructing the object without anything then simply called addGeom to it. But no cigar. It needs a geom mid way through its execution for some reason. Only way I could get it to work was with the above