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 zero_equals_zero · Jun 28, 2014 at 05:40 PM · camerathird-person2.5d3rd person camera

how to view char from side at all times with 3rd person controller

Hi. I already posted this question yesterday on the forum, but it seems gone :)

I was testing out the 3rd person camera in unity standard assets and I like how it follows the player. However i am building a 2.5d platformer and have certain blocks in a different axis. Reason why I use this camera is, because part of the difficulty of the game will be to stay on the platform. And thus the player can move in all directions on that specific platform.

I tried to rotate the char 90degrees in editor mode, but once i press play the char is viewed from the back, after spending some time on the code that comes with the controller, i can't seem to find out where or what causes the camera to view the char from the back.

Here are a few screenshots to elaborate the situation. First situation is a standard platformer and I would love to have the camera view the char from the side. as you can see in the top view, the other platform is in a different direction.

alt text

Second screenshot would be when the player get to the new direction. I could make triggers to switch cameras but that seems not the way... Esp when I notice that the standard 3rd person controller/camera that ships with unity does what i want, except for the back view :)

alt text

am no sure if this is hardcore or noob... I am quite new to unity so I might oversee some basic things. Thank you for shedding some light and/or some pointers :) My best regards

—V

screenshot 2014-06-27 15.08.23.png (191.3 kB)
screenshot 2014-06-27 15.09.14.png (188.7 kB)
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Juice-Tin · Jun 28, 2014 at 06:40 PM

That's an extremely basic thing, the fact that you have trouble with that means you should start a bit simpler.

Try creating a new scene with a box. Put a script on it that has something like this in the Update method:

 Camera.main.camera.transform.position.y = transform.position.y;
 Camera.main.camera.transform.position.x = transform.position.x;
 Camera.main.camera.transform.LookAt(transform.position);

You can mess around with x/y/z values to get the angle you want. You should probably look up the basic tutorials online too. Goodluck!

Comment
Add comment · Show 1 · 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 zero_equals_zero · Jul 20, 2014 at 02:16 AM 0
Share

Yep I started quite simple, but in between learning a few things, I overlooked the simple solution while it was right before my eyes.

Yet. Thank you for your answer! Appreciated!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

3rd Person Camera collision is jerky when zooming out 1 Answer

Help Please - 2D Game Perspective Camera 2 Answers

Moving 3rd person camera around car 1 Answer

Smooth Camera follow script is causing framerate drops when moving 1 Answer

Stop camera from going through walls 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