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
2
Question by CubicApocalypse · Oct 24, 2012 at 06:20 AM · cameraphysicsspacecollisionsplanet

How to make first-person work in zero-G with planets?

As my first project with Unity, I'm trying to make a 3D star system that you can fly around in first-person. I'm not too worried about planetary gravity, but my real problem is that you can only get so close to the planet before you just stop. I'd like to be able to just fly up to a planet and skim the surface (before you ask, no, I don't need anything on the surface other than textures) without being locked on one altitude or being kept a certain distance from each planet.

I guess what I'm trying to ask is, how do I make the camera go straight forward, with little to no regard for collisions or physics in general?

Comment
Add comment · Show 3
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 Shrandis · Oct 24, 2012 at 10:23 AM 0
Share

I think I misunderstood something. If you don't want collisions or physics, can't you simply remove collider and rigidbody components of the camera game object and just attach a 3D movement script? Please tell me if this wasn't a misunderstanding and is actually the answer you seek so I can convert it to an answer ins$$anonymous$$d of a comment.

avatar image CubicApocalypse · Oct 24, 2012 at 04:51 PM 0
Share

I still don't want to be able to fly through the planets, though. I'm using the default first-person control object, but I removed the physical object linked with it. Not being locked onto a horizontal plane is a requirement.

avatar image Shrandis · Oct 24, 2012 at 08:48 PM 0
Share

If you don't want to be able to fly through the planets, you must use colliders. Also, I do not remember the fps controller script so I can't say for sure if it will work in 3D movement or not. But it shouldn't be hard to write such a movement script.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by cwperkins83 · Dec 07, 2012 at 10:06 PM

I'm building a space game similar to what you're talking about. I just have the camera with a small box collider on it and then rigid bodies with gravity disabled and sphere colliders on the planets.

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

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

Question about distant objects 3 Answers

Raycasts, Collisions, and Triggers outside of Camera frustum NOT WORKING 0 Answers

Adding a force(gravity) to a planet. 0 Answers

Collision and physics: asteroid 1 Answer

Complex Object Out of Control Collisions 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