Search in sources :

Example 1 with CylinderShapeX

use of com.bulletphysics.collision.shapes.CylinderShapeX 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);
}
Also used : CylinderShape(com.bulletphysics.collision.shapes.CylinderShape) CylinderShapeX(com.bulletphysics.collision.shapes.CylinderShapeX) CylinderShapeZ(com.bulletphysics.collision.shapes.CylinderShapeZ)

Aggregations

CylinderShape (com.bulletphysics.collision.shapes.CylinderShape)1 CylinderShapeX (com.bulletphysics.collision.shapes.CylinderShapeX)1 CylinderShapeZ (com.bulletphysics.collision.shapes.CylinderShapeZ)1