Search Unity

Free flight (RTS style camera) with cinemachine

Discussion in 'Cinemachine' started by Censureret, Sep 2, 2020.

  1. Censureret

    Censureret

    Joined:
    Jan 3, 2017
    Posts:
    363
    As the title says i am trying to create an RTS style camera with Cinemachine however i am not quite sure how to do it. I have looked in the samples but all of those revolves around a 3rd person character. Has anyone made a camera like this with any success? :)
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    I have created an RTS camera like in Warcraft 3 with Framing Transposer + Composer. I used the offset property on Framing Transposer to achieve an RTS-like feel. You can also use Transposer, but I prefer Framing Transposer, because it also adds soft-zone + dead-zone options which might come handy.
    See the attached images for a simple example.
     

    Attached Files:

    Last edited: Sep 2, 2020
    blisz likes this.