use of com.bulletphysics.collision.shapes.ConeShapeX in project jmonkeyengine by jMonkeyEngine.
the class ConeCollisionShape method createShape.
protected void createShape() {
if (axis == PhysicsSpace.AXIS_X) {
cShape = new ConeShapeX(radius, height);
} else if (axis == PhysicsSpace.AXIS_Y) {
cShape = new ConeShape(radius, height);
} else if (axis == PhysicsSpace.AXIS_Z) {
cShape = new ConeShapeZ(radius, height);
} else {
throw new UnsupportedOperationException("Unexpected axis: " + axis);
}
cShape.setLocalScaling(Converter.convert(getScale()));
cShape.setMargin(margin);
}
Aggregations