Player Controller

Hello everyone, i’m just starting and already have questions.
I have two boxes, first is a player and it just moving and second box is a weapon anchored by player. How can i rotate it in 2d platform? I need to check raycast or i can

scene.onPointerObservable.add((pointerInfo) => {
                switch (pointerInfo.type) {
                        case BABYLON.PointerEventTypes.POINTERMOVE:
                        item.physicsImpostor.setAngularVelocity(new BABYLON.Quaternion(0,pointerInfo.event.y,0,0));
                        console.log("POINTER MOVE");

I don’t know.
And if i import 3d model i need to create body, head and weapon in one model or it will be 3 models?

Hello and welcome!

can you provide a Playground?