Problem with understanding rotation conception

@woodley said: Can you explain in more detail?

Your mesh origin is probably at 0, 0, 0 in Blender, and you have offset your model in edit mode, rather than moving the object itself

By adjusting the mesh origin, you can alleviate this:

@wezrule said: Your mesh origin is probably at 0, 0, 0 in Blender, and you have offset your model in edit mode, rather than moving the object itself

Thank you so much!!!

I have done this for all meshes in my model. Now, when I try to get its GlobalTranslation, I receive its real coords.

But when I try to attach this part to another node, it moves to the origin.
Here is an example:
[java]
// Scene Graph composition
Node shootables = new Node(“Shootables”);
Node selected = new Node(“Selected”);
Node all = new Node(“All”);
all.attachChild(shootables);
all.attachChild(selected);
rootNode.attachChild(all);
shootables.attachChild(assetManager.loadModel(“Models/Andy1/Andy.j3o”));

//…some logic…

// Action handler
private ActionListener actionListener = new ActionListener() {
public void onAction(String name, boolean keyPressed, float tpf) {
// Selecting and deselecting
if (name.equals(“Shoot”)) {
CollisionResults allResults = new CollisionResults();
Ray ray = new Ray(cam.getLocation(), cam.getDirection());
all.collideWith(ray, allResults);

            if (allResults.size() > 0) {
                CollisionResult closest = allResults.getClosestCollision();
                Geometry closestGeometry = closest.getGeometry();

                Node currentParent = closestGeometry.getParent();
                String parentName = currentParent.getName();
                while (!parentName.equals("Shootables") && !parentName.equals("Selected")) {
                    parentName = currentParent.getName();
                    currentParent = currentParent.getParent();
                }

                if (parentName.equals("Shootables")) {
                    closestGeometry.getMaterial().setColor("Diffuse", ColorRGBA.Red);
                    selected.attachChild(closestGeometry);
                } else if (parentName.equals("Selected")) {
                    closestGeometry.getMaterial().setColor("Diffuse", new ColorRGBA(0.7968628f, 0.79058826f, 0.78745097f, 1.0f));
                    shootables.attachChild(closestGeometry);
                }
            }
        }

}
[/java]
And when this performs:
[java]
if (parentName.equals(“Shootables”)) {
closestGeometry.getMaterial().setColor(“Diffuse”, ColorRGBA.Red);
selected.attachChild(closestGeometry);
}
[/java]
My object moved to the origin.
Why does it happens?