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 Vice_Versa · Jun 22, 2015 at 12:42 AM · rotationuiobjectsorbitobjects-movement

Orbiting objects appear stretched

So im trying to make this interface where a bunch of buttons orbit around the player until they select one. the buttons are all moving correctly, but they appear to be stretched when they are coming and going around the player. when they are directly across from the player, they appear to be the correct scale. The transforms of the objects are not actually changing, just their positions so its really just a perspective thing, but it looks terrible when their actually going around the sides. Is there any way i can fix this? Hers my code

 using UnityEngine;
 using System.Collections;
 
 public class Orbit : MonoBehaviour {
 
     public Transform targetObject;
     Vector3 rotationMask = new Vector3(0, 1, 0); 
     public float rotationSpeed = 5.0f; 
 
 
     void FixedUpdate() {
     
             transform.RotateAround(
                 targetObject.transform.position, rotationMask, rotationSpeed * Time.deltaTime);
         transform.LookAt (targetObject);
     }
 }
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
1
Best Answer

Answer by Xarbrough · Jun 22, 2015 at 12:53 AM

If your objects are being distorted too much at the screen edges you can narrow the field of view property of the main camera. The higher the fov the more fisheye distortion. I usually set mine from the default 60 to 30, when a player is 2 units tall.

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 Vice_Versa · Jun 22, 2015 at 12:59 AM 0
Share

I probably should have mentioned, This is for the Oculus D$$anonymous$$2 so theres two main cameras and their settings are much different then normal Heres a screen shot of the inspector for one of the eyes ScreenShot

screentshot.png (53.2 kB)
avatar image Vice_Versa · Jun 22, 2015 at 01:03 AM 0
Share

Actually, what you said worked perfectly. If you post it as an answer I can close this

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

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

Related Questions

Objects not always Spawning At Correct Location 2 Answers

How to get all gameObjects with a script on them 1 Answer

Material for Image UI component does not work in WEBGL 2 Answers

Orbit Collision Axis 0 Answers

How do change UI.button onclick states(off, editor and runtime, runtime only) via script? 0 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