ode4j icon indicating copy to clipboard operation
ode4j copied to clipboard

DPlane.getQuaternion() fails with NullPointerException

Open i-make-robots opened this issue 2 years ago • 0 comments

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.

i-make-robots avatar Dec 24 '21 23:12 i-make-robots