ode4j
ode4j copied to clipboard
DPlane.getQuaternion() fails with NullPointerException
public class ODEPhysicsTests {
@Test
public void planeGetQuaternionFail() {
OdeHelper.initODE2(0);
DSpace space = OdeHelper.createHashSpace(null);
DPlane plane = OdeHelper.createPlane(space,0,0,1,0);
DQuaternionC q = plane.getQuaternion();
}
}
if getQuaternion exists for all DGeom it should succeed for all DGeom or documented that it is known to fail deliberately. Because DGeom/DPlane are interfaces what's going on behind (in DxPlane?) is invisible to me.