SkeletonControl skeletonControl = new SkeletonControl(skel);
model.addControl(skeletonControl);
skeletonControl.setHardwareSkinningPreferred(useHWSkinning);
BoundsUpdateControl bc = new BoundsUpdateControl();
bc.setSkeleton(skel);
model.addControl(bc);
model.setShadowMode(ShadowMode.CastAndReceive);
}
return model;