How to view CapsuleCollisionShape mesh?

I tried to run TestwalkingCharacter

but dont see any CapsuleCollisionShape mesh around my player…



how to enable this mesh

???

try [java]

this.getStateManager().getState(BulletAppState.class).getPhysicsSpace().enableDebug(this.getAssetManager());

[/java]

where i declare this i.e in simpleInitApp() or some where else



this is my player

[java]assetManager.registerLocator("./", FileLocator.class.getName());

player1 = (Node) assetManager.loadModel("dependencies/male.mesh.xml");

player1.setLocalScale(0.5f);

player1.setLocalTranslation(0f, 10f, 0f);

capsule1 = new CapsuleCollisionShape(2.0f, 4.0f,1);

character1 = new CharacterControl(capsule1, 0.01f);

character1.setUpAxis(1);

//character1.setPhysicsLocation(new Vector3f(0.0f,20.0f,0.0f));

player1.addControl(character1);

//character1.attachDebugShape(assetManager);

rootNode.attachChild(player1);

bulletAppState.getPhysicsSpace().add(character1);

[/java]



i want to see it mesh…

Do you want to see the model mesh or the physics collision mesh?

You add the physics collision debug display with the method i described up there (under the condition you have the latest nightly version).

And yes you can do that in simpleInitApp().



I would not know about model mesh though :frowning:



EDIT: oh and yes try that with character1.attachDebugShape(assetManager)