Bounding Box

I’m trying to do the exercise “Shoot at a Character” in the “Hello Picking” tutorial.

The code is this:

public static void main(String[] args) {


Node shootables;

Geometry mark;

public void simpleInitApp() {

shootables = new Node(“Shootables”);


shootables.attachChild(makeCharacter(“A”, -6f, 0f, 0f));


private Spatial makeCharacter(String nome, float x, float y, float, z) {

Spatial player = assetManager.loadModel(“Model/Oto/Oto.mesh.xml”);

player setLocalTranslation(x,y,z);


player.setModelBound(new BoundingBox());


return player;


The rest of the code is identical to that of HelloPicking

Why when I shot the model, the mark is placed as if the model was placed in the origin?