Theres a small bug in the way PhysicsCylinder reports its volume.
Heres the code:
@Override
public float getVolume() {
Vector3f size = getWorldScale();
return FastMath.PI * FastMath.sqr( size.x ) * size.y;
}
Changing the code as follows fixes the problem for me.
@Override
public float getVolume() {
Vector3f size = getWorldScale();
return FastMath.PI * FastMath.sqr( size.x ) * size.z;
}
I'm under the impression that PhysicsCylinders have their length (or height) along the z axis.