I have followed the example in the manual:
panda3d.etc.cmu.edu/wiki/index.p … n_with_ODE
It creates a number of cubes which free falls to a plane.
I’ve re-enabled the mouse by:
mat=Mat4(camera.getMat())
mat.invertInPlace()
base.mouseInterfaceNode.setMat(mat)
base.enableMouse()
Also, the original code of the plane creation is:
ground = render.attachNewNode(cm.generate())
ground.setPos(0, 0, -1); ground.lookAt(0, 0, -2)
groundGeom = OdePlaneGeom(space, Vec4(0, 0, 1, 0))
The OdePlaneGeom shall create a plane of position (0,0,0) instead of (0,0,-1), is that right ? So I also change the code to:
ground.setPos(0, 0, 0); ground.lookAt(0, 0, -2)
Then I position the camera to near the level of the plane, to check if the boxes are rested correctly on the plane.
I take a screen capture here:
hk.myblog.yahoo.com/clcheunghk/a … =1&mid=678
The boxes are either at 0.5 below the plane, or at 1 above the plane.
It looks like the ode geom is not mapped correctly to panda’s boxes. Is it my problem only ?