Hi. I have this minigun that is attached to a spring arm so i can aim while driving:
Its works like i wanted, but i have a problem: when sometink collides with the arm, the gun moves:
How can i fix this? any ideias?
Hi. I have this minigun that is attached to a spring arm so i can aim while driving:
Its works like i wanted, but i have a problem: when sometink collides with the arm, the gun moves:
How can i fix this? any ideias?
Your gun is a child of a spring arm. That’s why it moves.
I know that, im asking how can i fix it without losing the control of the gun. The minigun is controlled by the direction of the camera…
Get camera rotation and apply it to the gun on tick
That doesnt really work because of the diferent pivots…
Use world rotation
Thank you it seems to be working
Or, for simplicity go back to using control rotation, and check if your gun’s spring arm has ‘Do collision test’ turned on (I think it should be off for your purposes)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.