if ((scene.getType() & Spatial.NODE) != 0) {
if ((scene.getType() & SceneElement.NODE) != 0) {
    public boolean hasCollision(Spatial scene, boolean checkTriangles) {        if (this == scene || !isCollidable || !scene.isCollidable()) {            return false;        }        if (getWorldBound().intersects(scene.getWorldBound())) {            if ((scene.getType() & Spatial.NODE) != 0) {                Node parent = (Node) scene;                for (int i = 0; i < parent.getQuantity(); i++) {                    if (hasCollision(parent.getChild(i), checkTriangles)) {                        return true;                    }                }                return false;            } else {                if (!checkTriangles) {                    return true;                } else {                    return hasTriangleCollision((TriMesh) scene);                }            }        } else {            return false;        }    }