Can I get the current distance of the Camera Spring Arm?
I'm using a camera spring arm and I would like to be able to get the distance it's arm is currently. Meaning that if it is currently being pushed forward because it's colliding with a wall or something, then I would like to get the distance it is at that call. All I see in BP is variable for getting the Arm length - but this doesn't appear to give the distance it is rather the pre-set distance that it extends to.
I was able to make up a quick example for you. I hope that this information helps.
In this example I get the current position of the camera and the origin point of the spring arm and subtract them from one another, from there I use vector length to get the distance between the two points. Please note that the event tick was used only as an example.
Make it a great day
answered Dec 15 '15 at 08:40 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here