Hi everyone: I use a third person camera, 3dgs v7.84 I have problems with the orientation(pan) of the attached external weapon. I use this code at start and entity is at idle. everything is OK vec_for_vertex(temp.x, soldier, 338); vec_set(my.x, temp.x); my.z -= 20; // change the position to visually be ok my.x -= 12; my.pan = 90;
At soldiers rotation the weapon seems to be in the wrong position at the wrong rotation. Near the vertex but offset. I know that is the offset I added at first to be visually OK. I compensated the weapon pan by using my.pan = -65 + soldier.pan; and the weapon points to the target as the entity rotate. How can I adjust while turning to be visually correct. Thanks in advance.