Fps camera and following gun model

i have a gun model of an ak47, i made a node called camNode and i attached the model to the camNode, and then attached the camNode to the rootNode. So in the update method, it updates the camNode and sets it to the position of the camera using cam.getRotation and cam.getTranslation



the problem im having is that the gun never moves from the spot, it just rotates in one place. How would i get it to stay in front of the camera and follow it everywhere? any help is appreciated, im new to jMonkey :stuck_out_tongue:

nevermind, i got it to work :stuck_out_tongue: i had to set the position of the ak47’s using .rotate and .setLocalTranslation

Got it to work perfectly, love jme3 <3