while trying to test physcis body editor loader (BodyEditorLoader.java) from here
i get this improper casting, below is the function
private Model readJson(String str) {
Model m = new Model();
OrderedMap<String,?> rootElem
= (OrderedMap<String,?>) new JsonReader().parse(str); //this line has casting problem
Array<?> bodiesElems = (Array<?>) rootElem.get("rigidBodies");
for (int i=0; i<bodiesElems.size; i++) {
OrderedMap<String,?> bodyElem = (OrderedMap<String,?>) bodiesElems.get(i);
RigidBodyModel rbModel = readRigidBody(bodyElem);
m.rigidBodies.put(rbModel.name, rbModel);
}
return m;
}