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 help with script

Discussion in 'Scripting' started by withbluehorns, Feb 19, 2021.

  1. withbluehorns

    withbluehorns

    Joined:
    Feb 16, 2021
    Posts:
    2
    Hi!
    Im starting with unity
    i tried to make a roll a ball but i want add to my version:
    - 3 person camera
    -camera is rotating, when mouse move, my camera persective is changing
    - if camera for example if i press w im going forward, but when i turn camera right and press w im going right
    - ball is rotating when move
    Im not good in scripts beacuse im starting
    how looks sscript for this and how i can make it?
     
  2. davidnibi

    davidnibi

    Joined:
    Dec 19, 2012
    Posts:
    424
  3. withbluehorns

    withbluehorns

    Joined:
    Feb 16, 2021
    Posts:
    2
    hmm, its isnt that what i want,
    i need to camera rotate right and left cotrolled by mouse
    and ,,- if camera for example if i press w im going forward, but when i turn camera right and press w im going right"
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336