Hi!
Following the tutorial found here:
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_collision
I tried to adapt my old scripts to the newest jme3 and I stumbled unto a problem.
I tried to create a character just like in the tutorial by doing the following:
[java]@Override
public void simpleInitApp() {
bulletAppState = new BulletAppState();
stateManager.attach(bulletAppState);
viewPort.setBackgroundColor(new ColorRGBA(0.7f,0.8f,1f,1f));
flyCam.setMoveSpeed(100);
CapsuleCollisionShape capsuleShape = new CapsuleCollisionShape(1.5f, 6f, 1);
CharacterControl player = new CharacterControl(capsuleShape, 0.05f);
bulletAppState.getPhysicsSpace().add(player);[/java]
It only makes it to the last line where it gives the error:
java.lang.UnsupportedOperationException: Cannot add this kind of object to the physics space.
One other weard thing is that the tutorial says you must add player to the rootNode, tho in the source code it does not do it anywhere. And if you were to try to add it to the rootnode it will give you an error that its not acceptable.
I'v probebly done something commonly wrong, but if I could get help with this then I think I should have no more problems for a big while :D