Hello, I’m trying to have a lock on feature for my game and I’m stuck using the freedom camera for my 3rd person controller since that what 3d game kit had and the movement requires receiving the X axis of the rig. I’ve learned about and unders tend the concept of the target group but if I just use it as is, it focuses on center point of you and locked enemy so you can go off screen. How would I go about playing with the free look camera so that both player and locked enemy remain on screen?
There is no sure-fire way to do that with the FreeLook and target group. If the user rotates the camera so that it is in-between the player and the enemy, where should the camera look? You need a different setup.
Try this:
- ordinary vcam (not FreeLook)
- FramingTransposer in Body, Follow target = Player
- Composer in Aim, LookAt target = Enemy
Blend to that when you are in LockOn mode. Camera will automatically position itself so that the Player is between the camera and the Enemy.
EDIT:
Maybe in fact you can do it with a FreeLook. Try changing the Aim portion of each rig to a GroupComposer, and set the framing adjustment to DollyThenZoom. That way, the camera will always adjust its position so that the whole group is visible.