use of com.bulletphysics.collision.shapes.CylinderShapeZ in project jmonkeyengine by jMonkeyEngine.
the class CylinderCollisionShape method createShape.
protected void createShape() {
switch(axis) {
case 0:
cShape = new CylinderShapeX(Converter.convert(halfExtents));
break;
case 1:
cShape = new CylinderShape(Converter.convert(halfExtents));
break;
case 2:
cShape = new CylinderShapeZ(Converter.convert(halfExtents));
break;
}
cShape.setLocalScaling(Converter.convert(getScale()));
cShape.setMargin(margin);
}
Aggregations