Search Unity

Customizable camera movement based on MouseXY movement (desktop only)

Discussion in 'Scripting' started by eco_bach, May 25, 2017.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hi
    Fairly common request I'm sure but I need a customizable camera movement script for a desktop application. I need to be able to control both

    1) the amount of camera movement relative to mouse xy movement
    and
    2) the amount of camera movement inertia

    Is anyone aware of a C# based script that accomplishes the above?
     
  2. WarmedxMints

    WarmedxMints

    Joined:
    Feb 6, 2017
    Posts:
    1,035
    I believe the fps character controller in the standard assets has all the code you need for that.
     
  3. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Thanks. Yes there is the MouseLook script but it lacks inertia