Im doing an integration of maze3d with the odejava collision system and im getting problems detecting collisions.I have used the CarTerrain example as a base, and i have used the chassis as avatar without problems (the camera moves through the maze over a GeomBox body).Im adding the Wall3D shapes as GeomTriMeshes to the odeworld.
The problem comes when the box body has to collide with the walls, as i dont get any collisions, the box goes through the walls.In fact i only get collisions in some points of the wall (more or less in the center) but not in the whole wall.That does not make much sense, as with InitXithFromOdejava Xith displays the walls correctly as Ode knows them.
So, why does Ode draw well the walls but does not get the right collisions?
More info:
-The walls are simple Geoms while the avatar box is a Body
-I check with a println the collisions in the iterateContacts() method.
-When a collision happens (in detailed spots of the wall), the contact.getBodyID / contact.getGeomID does not seem to correspond to any body/geom NativeAdress.
-I dont know why, but all my objects/bodies seem to have the same NativeAdr…that may be the cause? how is the NativeAdr calculated?
Any clue?