Hi!
Playing around with CollisionShapes I noticed that the y-float of the vector you give a CylinderCollisionShape seems not to have any meaning.
So while changing the x- or z-float of that vector does make a change of the CollisionShape, the y-param does not.
test-case:
[java]
public class Main extends SimpleApplication
{
BulletAppState bulletAppState = new BulletAppState();
CylinderCollisionShape cylinderCollisionShape = new CylinderCollisionShape(new Vector3f(1, 20, 1));
Geometry geom = new Geometry("Box", new Box(1, 1, 1));
public static void main(String[] args)
{
Main app = new Main();
app.start();
}
@Override
public void simpleInitApp()
{
cam.setLocation(new Vector3f(-10, 10, -10));
flyCam.setMoveSpeed(20);
geom.setMaterial(new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"));
geom.addControl(new RigidBodyControl(cylinderCollisionShape, 0));
cam.lookAt(geom.getWorldTranslation(), Vector3f.UNIT_Y);
stateManager.attach(bulletAppState);
bulletAppState.setDebugEnabled(true);
bulletAppState.getPhysicsSpace().add(geom);
rootNode.attachChild(geom);
}
}[/java]
Changing the Shape to
[java]new CylinderCollisionShape(new Vector3f(1, 40, 1));[/java]
or
[java]new CylinderCollisionShape(new Vector3f(1, 0, 1));[/java]
or whatever does not change anything.