I did notice CollisionShapeFactory has not method for spheres, and also, SphereCollisionShape has no constructor for models like in Jm2.
So how to change the collisionshape to an sphere not knowing an statical size ?
Code :
Spatial asteroid = assetManager.loadModel(“Models/asteroid3/asteroid3.j3o”);
asteroid.setModelBound(new BoundingSphere());
asteroid.updateModelBound();
error-> SphereCollisionShape asteroidCollisionShape = new SphereCollisionShape( asteroid );
RigidBodyControl asteroidBody = new RigidBodyControl(asteroidCollisionShape, 1);