I am using leap motion in a drone simulator in UE4 where I am trying to control the drone using the leap motion hands.
My problem is that the camera is based on the leap character/hands instead of following the drone, so when the drone is moving forward you can’t really see it after a while. What I want to do is to make the camera following the drone, no matter where the leap hands are.
Is there a way to do that and how could I do it?
Thanks in advance.
I don’t have much experience with the leap motion in UE4, but I’m guessing your controller pawn is the hands? And they have a camera attached to them?
Yes. Can I make the camera be attached on the drone while the leap hands are still appearing on screen?
I see, so you want both the drone and the hands to appear on the screen. One way to do that would be to just have your Hands actor follow the drone around. So when your drone moves your actor moves.
Alternatively, if you don’t care about the hands staying in the camera, you could follow what Mindfane says in his answer here here. Essentially change the player’s camera to be the camera on the drone instead of the one on the hands, in which case the camera would no longer be following the hands around, it would be following the drone around