Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to solve the problem of 3DFPS model of Body in VirtualCamera

Discussion in 'Cinemachine' started by unity_408540137, Dec 5, 2022.

  1. unity_408540137

    unity_408540137

    Joined:
    Oct 23, 2022
    Posts:
    44
    Hi, I have a question in setting up Cinemachine.

    When I set up a virtualcamera, and adjust the parameter of Body.

    When I choose 3DFPS mode of Body in VirtualCamea, I find that my gameview will be targeted at my player's foot. I try to adjust the virtualcamera's position but fail to adjust.

    I refer to many videos of cinemachine, but it seems that those users don't have the same problem as I do.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    That's because your player's pivot point is at the foot. You can adjust the rig settings in the 3rdPersonFollow section to move the camera, but it might be more interesting to create an invisible child object of your player, move it where you want it, and use that as the target. Your player controller scripts would then rotate this pivot to make the camera orbit the player. See this tutorial:

     
  3. IndieForger

    IndieForger

    Joined:
    Dec 31, 2012
    Posts:
    92
    I might be wrong here but isn't it related to your target origin which most likely is your character foot?
     
  4. unity_408540137

    unity_408540137

    Joined:
    Oct 23, 2022
    Posts:
    44
    OK, Solved the problems, thanks@!!