Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Dark Souls Like Lock-on Problem!

Discussion in 'Cinemachine' started by billygamesinc, Jan 23, 2021.

  1. billygamesinc

    billygamesinc

    Joined:
    Dec 5, 2020
    Posts:
    311
    I'm currently using FreeLook for my lock on system. The follow target is the player transform and LookAt being the enemy. I'm running into an issue where the camera loses track of the player and prioritizes the look at target, almost as if it were zooming in on it rather than keeping both the player and the target on screen.

    Any help is greatly appreciated!
     
  2. AmirAzmi

    AmirAzmi

    Joined:
    Sep 4, 2019
    Posts:
    8
    Hmm, instead of targeting only the enemy, you can try to create a target group that has both the player and the enemy in the group. Set it to group average and try that.
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    @billnguyenme FreeLook is not a good rig for this. Try instead with a FramingTransposer + Composer combo in a normal vcam. Follow target is the player, LookAt target is the enemy. That will ensure that the camera looks at both player and enemy.
     
    billygamesinc likes this.