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

3rd person camera movement

Discussion in 'Cinemachine' started by Shosk, Jun 21, 2022.

  1. Shosk

    Shosk

    Joined:
    Sep 15, 2020
    Posts:
    1
    Hello. Im very new to unity (give or take 2 months of using it) Im stuck on a concept of camera usage. What I am aiming for is the camera movement used in World of warcraft. Where the right mouse button is click and drag in order to move the camera, scroll to zoom in and out. I've figured out cinemachine with the camera placement for 3rd person. where I'm lost is the code in order for the camera to be free and only move when I click and drag with the right mouse button. Anyone have an idea what I need there?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    There are several ways to do this, and the best way would depend on how you have set up your 3rd person camera.
    1. Can you paste here an image of the inspector of the CM camera?
    2. Also please show an image of the hierarchy so that I can see the relationship between the player, the main camera, and the CM camera.
    3. And finally, what version of CM are you using?