I have a spring arm component attached to my pawn for a third person shooter. Most of the time I do not want to have camera lag on it, because this would affect the aim/shoot mechanic. I do want it however for collisions, because in some environments it causes the spring arm to jitter due to collisions of different meshes at the same time.
Is there an event I can hook into to enable/disable this or any other solution for this problem?
If you take a look inside SpringArmComponent.cpp you will see alsmot at the end of the function UpdateDesiredArmLocation that after perform the Trace to detect the collision the function BlendLocation is called to get the final location.
So, you just need to create a new SpringArmComponent extending from this one, and override this function: