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
http://dl.dropbox.com/u/6638610/turtle.7z
Code :
[java] node_turtle = (Node)assetManager.loadModel("Models/turtle/turtle.j3o");
node_turtle.setShadowMode(ShadowMode.CastAndReceive);
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.addControl(node_turtle_control);
node_turtle_control.setPhysicsLocation(new Vector3f(-300,17.25f, 122));
chapter1.attachChild(node_turtle);
node_turtle_control.setKinematic(true);
bulletAppState.getPhysicsSpace().add(node_turtle_control);[/java]
alright, I added a fix, I hope the scale is not missing with some collision shapes now.
Yeh, its fixed:D