Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jan 16, 2014 at 04:15 PM by Calum-McManus for the following reason:

Question Solved.

avatar image
0
Question by Calum-McManus · Nov 14, 2013 at 02:24 PM · camera3rd person controller3rd person camerammorpgwow

MMO / WoW like 3rd person controller

So I'm looking at making a 3rd person RPG style game, and want the same movement and camera control as World of Warcraft (which are pretty much the same with every MMORPG I have played).

This includes:

  1. The ability to right click and turn both camera and player.

  2. The ability to left click and only turn camera (with out hiding the cursor as you still need to be able to click on things in game).

  3. To be able to click both mouse buttons to move forward.

  4. Using the scroll wheel to move the camera in and out.

  5. Having the character moving backwards when the "S" or Down Arrow is pressed

Then of course the normal controls like walking around and having the camera follow ect.

I've seen a few pretty large threads about this but there is never any clear answers.

All help is appreciated :)

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Calum-McManus · Nov 14, 2013 at 02:28 PM 0
Share

Forgot to mention, I only know C# so please no JavaScript :)

avatar image mattssonon · Nov 14, 2013 at 02:33 PM 0
Share

If you need us to explain and lay out something this specific then you might be better off going through some Unity tutorials and the documentation.

avatar image Calum-McManus · Nov 14, 2013 at 02:36 PM 0
Share

I understand that asking for something from scratch seems lazy, but I've been reading through this:

http://forum.unity3d.com/threads/16949-WOW-Camera-$$anonymous$$ovement?highlight=wow+camera

and it just allot of unanswered questions. Also I can't find a tutorial of this.

avatar image hydrix · Jan 17, 2017 at 06:26 AM 0
Share

put this in a script on a camera as the child of a child of the player object. It rotates its parent causing the camera to rotate around it it should then look like:

Player

Player-$$anonymous$$esh

CameraHolder

$$anonymous$$ainCamera(script on this)

 void Update () {

     if(Input.Get$$anonymous$$ey($$anonymous$$eyCode.$$anonymous$$ouse1)){
         
         Cursor.visible = false;
         transform.parent.Rotate (-Input.GetAxis ("$$anonymous$$ouse Y") * ySpeed, Input.GetAxis ("$$anonymous$$ouse X") * xSpeed, 0);
         transform.parent.rotation = Quaternion.Euler(transform.parent.rotation.eulerAngles.x, transform.parent.rotation.eulerAngles.y, 0);

     }else{
         Cursor.visible = true;
     }

    transform.position += transform.forward * Input.GetAxis ("$$anonymous$$ouse ScrollWheel") * scrollSpeed;
 }

2 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by Calum-McManus · Jan 16, 2014 at 04:14 PM

Non of these work very well or at least how i want them to, but luckily I've spent a month on it and got a perfect World of Warcraft style controller!

Thanks for your help though!

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image thornekey · Mar 04, 2014 at 06:20 AM 0
Share

can you release your code?

avatar image Calum-McManus · Mar 04, 2014 at 10:57 AM 0
Share

It may be released on the asset store soon, but this kinda code is in high demand and i don't want to end up loosing it

avatar image
0

Answer by zotey · Nov 14, 2013 at 06:34 PM

Hey,

Have a look at the Third Person MMO Controller in the asset store here. And you may be interested in this forum thread. here

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rotate 3rd person camera around player 1 Answer

How to stop 3rd person camera going throught walls ? 1 Answer

Camera collision while using accelerometer 1 Answer

Change camera angle for 3rd person controller 1 Answer

How to move player in direction where the camera is aiming ? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges