*/
@SuppressWarnings("unchecked")
public static WorldObject getNodeFromPickPath(PInputEvent event,
Class<? extends WorldObject> type) {
PStack nodeStack = event.getPath().getNodeStackReference();
ListIterator<Object> it = nodeStack.listIterator(nodeStack.size());
while (it.hasPrevious()) {
Object node = it.previous();
if (node instanceof PiccoloNodeInWorld) {