Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Help with my mouse orbit script (movement)?

Discussion in 'Scripting' started by Treasureman, Dec 18, 2014.

  1. Treasureman

    Treasureman

    Joined:
    Jul 5, 2014
    Posts:
    563
    Hi
    If you've ever played Dead Space than you'll understand what I want. I want the Y axis (rotation) of my FPSController to lerp to the same Y axis as the MainCamera when you either hold the Horizontal, Vertical, or Aim input. How you'd I do this? If you need an example then here's some Dead Space Gameplay.

    P.S. I prefer JavaScript but anything works. Thanks!!!