Hi guys
For character crouching animation i added to Pawn a Spring Arm component and add some offset in Z axis with Timeline animation for move camera down when character start crouching.
Timeline are driven lepr between two values.
The problem is that during animation im offsetting spring arm only in Z axis, but if character look on the ground its clearly see that camera moves slightly backward, and back on start position when **Timeline **play in reverse.
Im also try using Camera and **Set Relative Location **but it not solve the problem.
Why thats happening?
Spring Arm set to 0 length. When character stand everything is okay. Lookaround with mouse change camera direction like it should be, like camera mounting on some point in the world. But after **Set Socket Offset **of Spring Arm or Set Relative Location of Camera are done, looking around with camera works like **Spring Arm **length was changed.
Here character look at the ground in “Stand” state. Notes the Capsule cage.
And that after crouching animation is complete:
Camera moves not only in Z axis down, but also moves backward.
Here’s my BP: