Max distance for VinterpTo/RinterpTo node?

MinuteMa1d
Wed, 14 Oct 2020 05:13:04 +0000
Editor Scripting

I have a set of fps arms that I interpolate to match the camera’s location and rotation smoothly. Is there a way to set a max distance that the arms can get from the camera? And same for rotation, as in clamping them? I’ve had this problem in the past, when the player is falling at a high rate of speed, the arms keep going up and up and eventually you can’t even see them anymore, hehe. I know this is possible with some math from the vectors, but I can’t think of what it would be

2 posts - 1 participant