Added objectFactory to create bodies & joints