Over grown debug shape

If i resize the model before creating DynamicMeshShape, the debug shape turn out very big then the actual model. The collison with the model is fine, but, just the dubug shape is over grown.

here in this image, the blue debug shape is the DS of the turtle. But is i remove, the

[java] node_turtle.setLocalScale(7f);[/java]

line , things turn back to normal.

Hmmm… ok… Its like squared, right? Can you post a test case?

Here is the asset


Code :

[java] node_turtle = (Node)assetManager.loadModel("Models/turtle/turtle.j3o");


node_turtle.setLocalScale(7f); // With this line & without this line

CollisionShape node_turtle_cs = CollisionShapeFactory.createDynamicMeshShape(node_turtle);

node_turtle_control = new PhysicsRigidBodyControl(node_turtle_cs, 1f);


node_turtle_control.setPhysicsLocation(new Vector3f(-300,17.25f, 122));




alright, I added a fix, I hope the scale is not missing with some collision shapes now.

Yeh, its fixed:D