so…this was done and I went to implement sneaking.
I didn’t want to use the default crouch function because I want to use my own speed parameters to have full control over the animation and such…and of course, the camera
While my sneak function solve the speed thingy, the camera issue is persist as soon as I shrink the size for the player capsule. I need the camera in the exact same position before and after sneaking, however the camera boom is attached to the Rootcomponent which is the capsule and once the capsule shrink, the camera boom follows.
First I thougt “no problem, then I’ll just add the height difference as a z offset to the camera”…but once I debugged the camera position vector I’ve found out that it is still on the same z position (also x and y) as before…so maybe only the rotation is influenced.
Does anybody know a way to lock an actors position (location and rotation), even it if is only useful for debugging?
I also added the heightadjust to the length of the camera boom, but it only pushed the camera more far away, but still went down.
After my work I’ll continue looking for a solution.
If I can’t fix this I guess I have to add a second camera which will be activated during sneaking and stealth combat…or just not shrink the capsule, but this is actually the worst solution since I can’t use some nice features of crouching/ sneaking then.