userObject not saved/restore in class PhysicsCollisionObject

Hi,



it looks like

[java]private Object userObject;[/java] is not saved or restored via Savable way.

Which cause collision event to fail ie return always null, when you restore saved Scene.



work arround so far is to Re set userObject with spatial once you restored you scene

like

[java]RigidBodyControl gh = pickable.getControl(RigidBodyControl.class);

if(gh != null) {

gh.setUserObject(pickable);

}[/java]

Thanks, I fixed it for Controls and Spatials as UserObject in svn, otherwise you cannot save the UserObject, because its not a Savable but an ordinary Object.

thx a lot. makes sens.