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 /
avatar image
0
Question by KurtBexley · Nov 30, 2012 at 08:56 PM · cameracontrolview

Changing the Camera Control

In Unity 4.0 I would like to know how to edit the First Person Controller asset that comes in the package provided with Unity. I would like the player to be able to still move around with the ARROW KEYS, but instead of using the mouse to 'look around' I would like to know how to make it so you use the W,A,S+D keys to do this (W tilts the view up, A to the left, D to the right and S downwards). Also I would like it so the mouse does not move the view around. Any help is much appreciated. Thank you.

Comment
Add comment · Show 1
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 azmat786n · Dec 01, 2012 at 05:26 AM 0
Share

goto components --> camera control --> select "mouse look"

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Benjamin6817 · Dec 01, 2012 at 06:29 AM

Well, there are many ways to do that. I would recommend you remove the MouseOrbit script. Then I would make another one.... I would probably if the user presses W -> increase Y axis if the uses presses S -> decrease Y axis, if user presses D increase X axis, etc., you get the point. There's no hard math in it.

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
avatar image
0

Answer by KurtBexley · Dec 02, 2012 at 11:46 AM

Thank you Ben, however Im completely new to javascript although I know a few functions I'm used to coding in GML. How do I detect a key press and change the camera's rotation?

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 Benjamin6817 · Dec 04, 2012 at 11:27 PM 0
Share

Well, if you want to learn JavaScript I would point you here: http://wiki.unity3d.com/index.php/The_Absolute_Beginner%27s_Guide_to_Unity Like the article says, I directed you there because "You were trying to run before you can walk". When you're done with those tutorials and you still have the same question I would look at: http://docs.unity3d.com/Documentation/ScriptReference/Input.GetButton.html and http://docs.unity3d.com/Documentation/ScriptReference/Transform.Rotate.html

avatar image Benjamin6817 · Dec 04, 2012 at 11:31 PM 0
Share

I'm not saying you're dumb or anything here. I just believe that you could really benefit from that article more than you could me writing you a script. If you're looking to be an artist, you're going to need some basic scripting knowledge anyways. I work on a project in a non-profit $$anonymous$$m and I have seen the artists write scripts to do basic things, rather than to bother the programmers and make them write a simple script that makes an enemy rotate when you press the "F" key or something.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

12 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

Related Questions

How to make camera position relative to a specific target. 1 Answer

Unity camera troubles 1 Answer

Camera Control Help 0 Answers

character switching on collision 1 Answer

Camera frustums + custom field of view 2 Answers


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