Make an object follow another on a single axis that isn't aligned to the grid?
I know you can do this (minus the "isn't aligned to the grid" part) with a follower and turning the strength down to 0 in one or two of the axes, but I need the object to always be directly in front of a moving camera (fully centered in the view at all times), but to follow another object as it moves towards or away from that camera.
So to reiterate: there's a camera and an object in the scene, then there's another object (invisible in this case) that's centered in the camera's view at all times and it follows the first object only on the axis that points straight from the camera (regardless of how the camera moves or rotates).
A 'Local Space' or 'Relative to Object' toggle in the Follower gadget would be just the thing to make this easy (I think), but since that's not a thing the solution is probably going to have to be somewhat more complicated.
-
This sounds like a use of the raycast (laser-scope) gadget and you want to move the object to the point the gadget gives. I would do this by putting a piston on the camera and then the object with the distance set to whatever the laser scope gives.
-
Oh, and I forgot to mention I haven't actually looked at this tool yet, I just remember reading somewhere that this is how it functions
-
The problem there is the distance the laser scope gives will be greater than what I need if the object it's measuring the distance to is off center relative to the camera.
Please sign in to leave a comment.