If anyone knows a bit about JBullet a bit help would be really nice:
Shouldn't the following two codes produce a shape wich behaves identical?
the working one
DefaultMotionState fallMotionState = new DefaultMotionState();
javax.vecmath.Vector3f inertia = new javax.vecmath.Vector3f();
boxshape.calculateLocalInertia(1,inertia);
RigidBodyConstructionInfo fallconstrutor = new RigidBodyConstructionInfo(1,fallMotionState,boxshape,inertia);
physicbox = new RigidBody(fallconstrutor);
The one that should work but does not
javax.vecmath.Vector3f inertia = new javax.vecmath.Vector3f();
CompoundShape physicshape = new CompoundShape();
BoxShape boxshape = new BoxShape(new javax.vecmath.Vector3f(1f,1f,1f));
physicshape.addChildShape(new Transform(), boxshape);
DefaultMotionState fallMotionState = new DefaultMotionState();
RigidBodyConstructionInfo fallconstrutor = new RigidBodyConstructionInfo(10,fallMotionState,physicshape,inertia);
physicbox = new RigidBody(fallconstrutor);